[PATCH] mm/pdflush.c: use BUG_ON From: Eric Sesterhenn / snakebyte Signed-off-by: Eric Sesterhenn Signed-off-by: Alexey Dobriyan Index: linux-kj/mm/pdflush.c =================================================================== --- linux-kj.orig/mm/pdflush.c 2006-01-18 02:21:11.000000000 +0300 +++ linux-kj/mm/pdflush.c 2006-01-18 16:47:20.000000000 +0300 @@ -202,8 +202,7 @@ int pdflush_operation(void (*fn)(unsigne unsigned long flags; int ret = 0; - if (fn == NULL) - BUG(); /* Hard to diagnose if it's deferred */ + BUG_ON(fn == NULL); /* Hard to diagnose if it's deferred */ spin_lock_irqsave(&pdflush_lock, flags); if (list_empty(&pdflush_list)) {