diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 11:15:12 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 11:15:12 -0500 |
commit | 373ebfbf17a8ecad304f65cb92c4d2d10adc0a19 (patch) | |
tree | b2cc0bd4a1f26f38515476f436d532926b331a85 /drivers/mtd/mtd_blkdevs.c | |
parent | 36ddf5bbdea7ba4582abc62f106f0f0e9f0b6b91 (diff) |
BUG_ON() Conversion in drivers/mtd/
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 7f3ff500b68e..840dd66ce2dc 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -450,8 +450,7 @@ int deregister_mtd_blktrans(struct mtd_blktrans_ops *tr) | |||
450 | 450 | ||
451 | kfree(tr->blkcore_priv); | 451 | kfree(tr->blkcore_priv); |
452 | 452 | ||
453 | if (!list_empty(&tr->devs)) | 453 | BUG_ON(!list_empty(&tr->devs)); |
454 | BUG(); | ||
455 | return 0; | 454 | return 0; |
456 | } | 455 | } |
457 | 456 | ||