summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-03-01 17:07:21 +0300
committerVinod Koul <vinod.koul@intel.com>2017-03-14 05:29:35 +0300
commit7c3f4309a0e5d70d164c60cd160262db21cb050d (patch)
tree0f0e353b4d17b5e746d8ac5a9145c98c89bbb223 /drivers/dma
parent041cf7e064996373148b24788e1aa7a036266986 (diff)
downloadlinux-7c3f4309a0e5d70d164c60cd160262db21cb050d.tar.xz
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mv_xor.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 0cb951b743a6..ea53b879859c 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1580,11 +1580,6 @@ static int mv_xor_probe(struct platform_device *pdev)
int irq;
cd = &pdata->channels[i];
- if (!cd) {
- ret = -ENODEV;
- goto err_channel_add;
- }
-
irq = platform_get_irq(pdev, i);
if (irq < 0) {
ret = irq;