lightnvm: fix unnecessary NULL check warnings
authorTian Tao <tiantao6@hisilicon.com>
Sun, 14 Feb 2021 10:31:02 +0000 (10:31 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Feb 2021 04:27:24 +0000 (21:27 -0700)
commit4cf29e43afc0dea7ccf6b09a20bd598fad47bf60
tree23180566202eb9ad39d1a0c5329adef48e6a3ea9
parent65fb1b0dbce84aaded750cbb6a8cb7783ae601eb
lightnvm: fix unnecessary NULL check warnings

Remove NULL checks before vfree() to fix these warnings:
./drivers/lightnvm/pblk-gc.c:27:2-7: WARNING: NULL check before some
freeing functions is not needed.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-gc.c