mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
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 <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
parent
5d9a276a3e
commit
d99c590985
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user