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:
Colin Ian King 2017-05-17 22:58:50 +01:00 committed by Vinod Koul
parent 58d9612510
commit 1fc63cb4f1

View File

@ -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,