mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
1bdfd554be
commit
ab8e92efcf
@@ -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);
|
||||
|
Reference in New Issue
Block a user