diff options
author | Yang Li <abaci-bugfix@linux.alibaba.com> | 2021-01-21 10:43:22 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-26 21:15:41 +0100 |
commit | 9abe47cc5cbeda75a1ae2ffe6bb8636a0327eddc (patch) | |
tree | 38f9f575e11374d821d6d0a43cac596a6aef3e85 /drivers/block/rsxx | |
parent | zram: fix NULL check before some freeing functions is not needed (diff) | |
download | linux-9abe47cc5cbeda75a1ae2ffe6bb8636a0327eddc.tar.xz linux-9abe47cc5cbeda75a1ae2ffe6bb8636a0327eddc.zip |
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/rsxx')
-rw-r--r-- | drivers/block/rsxx/dma.c | 3 |
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, |