dmaengine: cppi: remove unused and bogus check
authorVinod Koul <vinod.koul@intel.com>
Fri, 8 Jul 2016 05:00:57 +0000 (10:30 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sat, 23 Jul 2016 10:37:27 +0000 (16:07 +0530)
commita03811045ee3c2be1d333fb2136d06f244302d46
tree1cd876b69ac290bb17fb1ac378fe0ff6af7f709a
parent4cad91b2a9977c8d92f342c4a9b73cd9dbce8f21
dmaengine: cppi: remove unused and bogus check

In cppi41_dma_prep_slave_sg() variable num is initialized to zero, but never
updated and a BUG_ON is checked for it being greater than zero which will be
always false.

Remove the bogus check and this variable

Reported-by: David Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c