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

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
...@@ -582,7 +582,7 @@ sba_prep_dma_interrupt(struct dma_chan *dchan, unsigned long flags) ...@@ -582,7 +582,7 @@ sba_prep_dma_interrupt(struct dma_chan *dchan, unsigned long flags)
req->tx.flags = flags; req->tx.flags = flags;
req->tx.cookie = -EBUSY; req->tx.cookie = -EBUSY;
return (req) ? &req->tx : NULL; return &req->tx;
} }
static void sba_fillup_memcpy_msg(struct sba_request *req, static void sba_fillup_memcpy_msg(struct sba_request *req,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment