mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-10-04 09:55:31 +10:00
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>
This commit is contained in:
parent
041cf7e064
commit
7c3f4309a0
@ -1580,11 +1580,6 @@ static int mv_xor_probe(struct platform_device *pdev)
|
|||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
cd = &pdata->channels[i];
|
cd = &pdata->channels[i];
|
||||||
if (!cd) {
|
|
||||||
ret = -ENODEV;
|
|
||||||
goto err_channel_add;
|
|
||||||
}
|
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, i);
|
irq = platform_get_irq(pdev, i);
|
||||||
if (irq < 0) {
|
if (irq < 0) {
|
||||||
ret = irq;
|
ret = irq;
|
||||||
|
Loading…
Reference in New Issue
Block a user