summaryrefslogtreecommitdiffstats
path: root/lib/list_debug.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-10-01 08:26:59 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 09:39:17 +0200
commitab8e92efcf3f7972f30033cad75f180aef4f3abc (patch)
tree3205746553d1981de43cdaa07739f910fd25ed2d /lib/list_debug.c
parent[PATCH] SCSI: fix request flag-related build breakage (diff)
downloadlinux-ab8e92efcf3f7972f30033cad75f180aef4f3abc.tar.xz
linux-ab8e92efcf3f7972f30033cad75f180aef4f3abc.zip
[PATCH] list_del-debug fix
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>
Diffstat (limited to 'lib/list_debug.c')
-rw-r--r--lib/list_debug.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/list_debug.c b/lib/list_debug.c
index e80d27c97898..7ba9d823d388 100644
--- a/lib/list_debug.c
+++ b/lib/list_debug.c
@@ -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);