From: Ezequiel Garcia Date: Wed, 30 Oct 2013 15:01:42 +0000 (-0300) Subject: dma: mv_xor: Remove unneeded NULL address check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a911ddc9a0ecbf77a8b2e78dc5c40e5b7bb40d24;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Thomas Petazzoni Signed-off-by: Ezequiel Garcia Signed-off-by: Dan Williams --- diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 17326e780e23..8ff21b15ad1c 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -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);