Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm Revert last, assertions on undefined variables do...



details:   https://anonhg.NetBSD.org/src/rev/e89dc039b4a0
branches:  trunk
changeset: 768849:e89dc039b4a0
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 23:31:12 2011 +0000

description:
Revert last, assertions on undefined variables don't make sense.

diffstat:

 sys/dev/dm/dm_target.c |  12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diffs (26 lines):

diff -r 6a4df3ec373b -r e89dc039b4a0 sys/dev/dm/dm_target.c
--- a/sys/dev/dm/dm_target.c    Sat Aug 27 22:41:35 2011 +0000
+++ b/sys/dev/dm/dm_target.c    Sat Aug 27 23:31:12 2011 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_target.c,v 1.16 2011/08/27 17:06:08 ahoka Exp $      */
+/*        $NetBSD: dm_target.c,v 1.17 2011/08/27 23:31:12 joerg Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -150,16 +150,6 @@
 {
        dm_target_t *dmt;
 
-       /* Sanity check for any missing function */
-       KASSERT(dmt->init != NULL);
-       KASSERT(dmt->status != NULL);
-       KASSERT(dmt->strategy != NULL);
-       KASSERT(dmt->deps != NULL);
-       KASSERT(dmt->destroy != NULL);
-       KASSERT(dmt->upcall != NULL);
-       KASSERT(dmt->sync != NULL);
-       KASSERT(dmt->secsize != NULL);
-
        mutex_enter(&dm_target_mutex);
 
        dmt = dm_target_lookup_name(dm_target->name);



Home | Main Index | Thread Index | Old Index