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

Commit 66bde0b7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dan Williams
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent e8a7e48b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1021,11 +1021,6 @@ static irqreturn_t intel_mid_dma_interrupt(int irq, void *data)

	/*DMA Interrupt*/
	pr_debug("MDMA:Got an interrupt on irq %d\n", irq);
	if (!mid) {
		pr_err("ERR_MDMA:null pointer mid\n");
		return -EINVAL;
	}

	pr_debug("MDMA: Status %x, Mask %x\n", tfr_status, mid->intr_mask);
	tfr_status &= mid->intr_mask;
	if (tfr_status) {