mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
dma: use BUG_ON correctly in ppc4xx/adam.c, v4
This patch makes BUG_ON() usage correct in drivers/dma/ppc4xx/adam.c Cc: Vinod Koul <[email protected]> Cc: Dan Williams <[email protected]> Cc: Grant Likely <[email protected]> Cc: Anatolij Gustschin <[email protected]> Cc: Sean MacLennan <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Coly Li <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
7912d30007
commit
427cdf19b9
1 changed files with 4 additions and 4 deletions
|
|
@ -2313,7 +2313,7 @@ static struct dma_async_tx_descriptor *ppc440spe_adma_prep_dma_memcpy(
|
|||
if (unlikely(!len))
|
||||
return NULL;
|
||||
|
||||
BUG_ON(unlikely(len > PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT));
|
||||
BUG_ON(len > PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT);
|
||||
|
||||
spin_lock_bh(&ppc440spe_chan->lock);
|
||||
|
||||
|
|
@ -2354,7 +2354,7 @@ static struct dma_async_tx_descriptor *ppc440spe_adma_prep_dma_memset(
|
|||
if (unlikely(!len))
|
||||
return NULL;
|
||||
|
||||
BUG_ON(unlikely(len > PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT));
|
||||
BUG_ON(len > PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT);
|
||||
|
||||
spin_lock_bh(&ppc440spe_chan->lock);
|
||||
|
||||
|
|
@ -2397,7 +2397,7 @@ static struct dma_async_tx_descriptor *ppc440spe_adma_prep_dma_xor(
|
|||
dma_dest, dma_src, src_cnt));
|
||||
if (unlikely(!len))
|
||||
return NULL;
|
||||
BUG_ON(unlikely(len > PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT));
|
||||
BUG_ON(len > PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT);
|
||||
|
||||
dev_dbg(ppc440spe_chan->device->common.dev,
|
||||
"ppc440spe adma%d: %s src_cnt: %d len: %u int_en: %d\n",
|
||||
|
|
@ -2887,7 +2887,7 @@ static struct dma_async_tx_descriptor *ppc440spe_adma_prep_dma_pq(
|
|||
ADMA_LL_DBG(prep_dma_pq_dbg(ppc440spe_chan->device->id,
|
||||
dst, src, src_cnt));
|
||||
BUG_ON(!len);
|
||||
BUG_ON(unlikely(len > PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT));
|
||||
BUG_ON(len > PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT);
|
||||
BUG_ON(!src_cnt);
|
||||
|
||||
if (src_cnt == 1 && dst[1] == src[0]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue