mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 09:11:49 +00:00
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
58d9612510
commit
1fc63cb4f1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user