aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-28 09:41:56 -0400
committerDan Williams <dan.j.williams@intel.com>2010-12-03 04:05:24 -0500
commit66bde0b70aa2e348ac2c9b9626743c1402b9d466 (patch)
tree6a3a9413f3fe14308dcd8a068fbc55c9729adcf9 /drivers/dma
parente8a7e48bb248a1196484d3f8afa53bded2b24e71 (diff)
dma/intel_mid_dma: remove unneeded null check
Smatch complains because we dereference "mid" before checking it. It turns out that "mid" is always a valid pointer here so we can just remove the check. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/intel_mid_dma.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index 338bc4eed1f3..41941d05bfb9 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -1021,11 +1021,6 @@ static irqreturn_t intel_mid_dma_interrupt(int irq, void *data)
1021 1021
1022 /*DMA Interrupt*/ 1022 /*DMA Interrupt*/
1023 pr_debug("MDMA:Got an interrupt on irq %d\n", irq); 1023 pr_debug("MDMA:Got an interrupt on irq %d\n", irq);
1024 if (!mid) {
1025 pr_err("ERR_MDMA:null pointer mid\n");
1026 return -EINVAL;
1027 }
1028
1029 pr_debug("MDMA: Status %x, Mask %x\n", tfr_status, mid->intr_mask); 1024 pr_debug("MDMA: Status %x, Mask %x\n", tfr_status, mid->intr_mask);
1030 tfr_status &= mid->intr_mask; 1025 tfr_status &= mid->intr_mask;
1031 if (tfr_status) { 1026 if (tfr_status) {