]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
dmaengine: mv_xor: remove redundant null check on cd
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Mar 2017 14:07:21 +0000 (14:07 +0000)
committerVinod Koul <vinod.koul@intel.com>
Tue, 14 Mar 2017 02:29:35 +0000 (07:59 +0530)
commit7c3f4309a0e5d70d164c60cd160262db21cb050d
tree0f0e353b4d17b5e746d8ac5a9145c98c89bbb223
parent041cf7e064996373148b24788e1aa7a036266986
dmaengine: mv_xor: remove redundant null check on cd

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 <colin.king@canonical.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c