OSDN Git Service

dmaengine: bcm-scm-raid: remove redundant null check on req
authorColin Ian King <colin.king@canonical.com>
Wed, 17 May 2017 21:58:50 +0000 (22:58 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 19 May 2017 03:26:16 +0000 (08:56 +0530)
commit1fc63cb4f1de790019d57ccaf3e9cd2e6abbc648
treec8173b0040cf5c0c9a787b9fb137c76e9d4d9bf6
parent58d96125103c77686271f515d2ffad0d6d0dedc8
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>
drivers/dma/bcm-sba-raid.c