mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] More BUG_ON conversion
Signed-off-by: Eric Sesterhenn <[email protected]> Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Alan Cox <[email protected]> Cc: James Bottomley <[email protected]> Acked-by: "Salyzyn, Mark" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
78ce89c92b
commit
125e18745f
18 changed files with 34 additions and 65 deletions
|
|
@ -202,8 +202,7 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0)
|
|||
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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue