gfs2: Remove redundant NULL check before kfree
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 2 Jun 2022 07:19:39 +0000 (07:19 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 Jun 2022 07:57:16 +0000 (09:57 +0200)
commitab37c305bf890727dd808b1dd6526b28491915d7
tree886b85bd438149f7d35bc31cfab323a6fb0006d3
parentfdaf9a5840acaab18694a19e0eb0aa51162eeeed
gfs2: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c