zram: fix NULL check before some freeing functions is not needed
authorTian Tao <tiantao6@hisilicon.com>
Mon, 25 Jan 2021 08:13:01 +0000 (16:13 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 20:12:08 +0000 (13:12 -0700)
commit294ed6b9f00665acc22253044890257c5d9d18c1
tree815c33616acdab17be917524db13242ee2d8edc0
parent370276bac8ec6f74fb52a518ef05aa84d1059067
zram: fix NULL check before some freeing functions is not needed

fixed the below warning:
/drivers/block/zram/zram_drv.c:534:2-8: WARNING: NULL check
before some freeing functions is not needed.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c