summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorYang Li <abaci-bugfix@linux.alibaba.com>2021-01-21 17:43:22 +0800
committerJens Axboe <axboe@kernel.dk>2021-01-26 13:15:41 -0700
commit9abe47cc5cbeda75a1ae2ffe6bb8636a0327eddc (patch)
tree38f9f575e11374d821d6d0a43cac596a6aef3e85 /drivers/block
parent294ed6b9f00665acc22253044890257c5d9d18c1 (diff)
rsxx: remove redundant NULL check
Fix below warnings reported by coccicheck: ./drivers/block/rsxx/dma.c:948:3-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <abaci-bugfix@linux.alibaba.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rsxx/dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/rsxx/dma.c b/drivers/block/rsxx/dma.c
index 1914f5488b22..0574f4495755 100644
--- a/drivers/block/rsxx/dma.c
+++ b/drivers/block/rsxx/dma.c
@@ -944,8 +944,7 @@ failed_dma_setup:
ctrl->done_wq = NULL;
}
- if (ctrl->trackers)
- vfree(ctrl->trackers);
+ vfree(ctrl->trackers);
if (ctrl->status.buf)
dma_free_coherent(&card->dev->dev, STATUS_BUFFER_SIZE8,