提交 d99c5909 编写于 作者: E Eric Sesterhenn 提交者: Adrian Bunk

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: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
上级 5d9a276a
...@@ -640,8 +640,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data) ...@@ -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 */ /* Max limit for DMA frame count is 0xffff */
if (unlikely(count > 0xffff)) BUG_ON(count > 0xffff);
BUG();
OMAP_MMC_WRITE(host->base, BUF, buf); OMAP_MMC_WRITE(host->base, BUF, buf);
omap_set_dma_transfer_params(dma_ch, OMAP_DMA_DATA_TYPE_S16, omap_set_dma_transfer_params(dma_ch, OMAP_DMA_DATA_TYPE_S16,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册