Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d99c5909859625f3c9c6dfee6caa3b2a7c0ef163
Commit:     d99c5909859625f3c9c6dfee6caa3b2a7c0ef163
Parent:     5d9a276a3eb073251737cb92b790bfdb9f0b9139
Author:     Eric Sesterhenn <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 30 05:27:38 2006 +0100
Committer:  Adrian Bunk <[EMAIL PROTECTED]>
CommitDate: Thu Nov 30 05:27:38 2006 +0100

    BUG_ON conversion for drivers/mmc/omap.c
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
---
 drivers/mmc/omap.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/omap.c b/drivers/mmc/omap.c
index 762fa28..d593ef3 100644
--- a/drivers/mmc/omap.c
+++ b/drivers/mmc/omap.c
@@ -640,8 +640,7 @@ mmc_omap_prepare_dma(struct mmc_omap_hos
        }
 
        /* 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,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to