mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-17 12:08:43 +00:00
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>
This commit is contained in:
parent
65fb1b0dbc
commit
4cf29e43af
1 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
static void pblk_gc_free_gc_rq(struct pblk_gc_rq *gc_rq)
|
static void pblk_gc_free_gc_rq(struct pblk_gc_rq *gc_rq)
|
||||||
{
|
{
|
||||||
if (gc_rq->data)
|
|
||||||
vfree(gc_rq->data);
|
vfree(gc_rq->data);
|
||||||
kfree(gc_rq);
|
kfree(gc_rq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue