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

Commit 1fc63cb4 authored by Colin Ian King's avatar Colin Ian King Committed by Vinod Koul
Browse files

dmaengine: bcm-scm-raid: remove redundant null check on req



Req is never null on at the point of the null check, so
remove this redundant check and just return &req->tx.

Detected by CoverityScan, CID#1436147 ("Logically dead code")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 58d96125
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -582,7 +582,7 @@ sba_prep_dma_interrupt(struct dma_chan *dchan, unsigned long flags)
	req->tx.flags = flags;
	req->tx.cookie = -EBUSY;

	return (req) ? &req->tx : NULL;
	return &req->tx;
}

static void sba_fillup_memcpy_msg(struct sba_request *req,