]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: fix unnecessary NULL check warnings
authorTian Tao <tiantao6@hisilicon.com>
Tue, 26 Jan 2021 02:40:02 +0000 (10:40 +0800)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Feb 2021 15:10:05 +0000 (10:10 -0500)
commitef7f72ac61b35a7815f0eba15370daf6a86214cc
tree2b392798e4c1e64cf88022caf9dc061b10c8c847
parent0746fc7c760f9657a11a0ea6fe53a26709b5e616
dm writecache: fix unnecessary NULL check warnings

Remove NULL checks before vfree() to fix these warnings:
./drivers/md/dm-writecache.c:2008:2-7: WARNING: NULL check before some
freeing functions is not needed.
./drivers/md/dm-writecache.c:2024:2-7: WARNING: NULL check before some
freeing functions is not needed.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c