Re: [PATCH] engine: mv_xor: remove redundant null check on cd

2017-03-13 Thread Vinod Koul
On Wed, Mar 01, 2017 at 02:07:21PM +, Colin King wrote: > From: Colin Ian King > > The check to see if cd is null is redundant, pdata->channels is > never null at this point, and hence &pdata->channels[i] cannot > be null, so remove the null check. > > Detected by CoverityScan, CID#1357194 (

[PATCH] engine: mv_xor: remove redundant null check on cd

2017-03-01 Thread Colin King
From: Colin Ian King The check to see if cd is null is redundant, pdata->channels is never null at this point, and hence &pdata->channels[i] cannot be null, so remove the null check. Detected by CoverityScan, CID#1357194 ("Logically Dead Code") Signed-off-by: Colin Ian King --- drivers/dma/mv