]> git.baikalelectronics.ru Git - kernel.git/commitdiff
[PATCH] list_del-debug fix
authorAndrew Morton <akpm@osdl.org>
Sun, 1 Oct 2006 06:26:59 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:17 +0000 (00:39 -0700)
These two BUG_ON()s are redundant and undesired: we're checking for this
condition further on in the function, only better.

Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/list_debug.c

index e80d27c9789820d867139428650d6cbd88812165..7ba9d823d388665cdef6cb647a13cc0bd41ddb75 100644 (file)
@@ -59,9 +59,6 @@ EXPORT_SYMBOL(list_add);
  */
 void list_del(struct list_head *entry)
 {
-       BUG_ON(entry->prev->next != entry);
-       BUG_ON(entry->next->prev != entry);
-
        if (unlikely(entry->prev->next != entry)) {
                printk(KERN_ERR "list_del corruption. prev->next should be %p, "
                                "but was %p\n", entry, entry->prev->next);