summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-10-30 12:01:42 -0300
committerDan Williams <dan.j.williams@intel.com>2013-11-14 11:04:42 -0800
commita911ddc9a0ecbf77a8b2e78dc5c40e5b7bb40d24 (patch)
treef8e64ce5bc10c9392f517befd2f802bbfc168f04 /drivers/dma
parent779e561ae2627727ea3d797a7db2496e8bae3430 (diff)
downloadlinux-a911ddc9a0ecbf77a8b2e78dc5c40e5b7bb40d24.tar.bz2
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 <thomas.petazzoni@free-electrons.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mv_xor.c4
1 files changed, 0 insertions, 4 deletions
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);