Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a911ddc9 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Dan Williams
Browse files

dma: mv_xor: Remove unneeded NULL address check



This mmio address is checked at probe-time, which makes this test
redundant. Let's just remove it.

Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 779e561a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1035,10 +1035,6 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
	}

	mv_chan->mmr_base = xordev->xor_base;
	if (!mv_chan->mmr_base) {
		ret = -ENOMEM;
		goto err_free_dma;
	}
	tasklet_init(&mv_chan->irq_tasklet, mv_xor_tasklet, (unsigned long)
		     mv_chan);