mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
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>
This commit is contained in:
parent
294ed6b9f0
commit
9abe47cc5c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user