]> err.no Git - linux-2.6/commitdiff
BUG_ON conversion for drivers/mmc/omap.c
authorEric Sesterhenn <snakebyte@gmx.de>
Thu, 30 Nov 2006 04:27:38 +0000 (05:27 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 30 Nov 2006 04:27:38 +0000 (05:27 +0100)
This patch converts a if () BUG(); construct to BUG_ON();
which occupies less space, uses unlikely and is safer when
BUG() is disabled.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/mmc/omap.c

index 762fa28958918fbd21770a574f035a725bb14bd5..d593ef342e759f1a551e8303d250f981fd5f4fd6 100644 (file)
@@ -640,8 +640,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data)
        }
 
        /* Max limit for DMA frame count is 0xffff */
-       if (unlikely(count > 0xffff))
-               BUG();
+       BUG_ON(count > 0xffff);
 
        OMAP_MMC_WRITE(host->base, BUF, buf);
        omap_set_dma_transfer_params(dma_ch, OMAP_DMA_DATA_TYPE_S16,