gfs2: Remove unnecessary NULL check before free_percpu()

free_percpu() checks for NULL pointers internally.
Remove unneeded NULL check here.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
Chen Ni 2025-04-17 16:38:39 +08:00 committed by Andreas Gruenbacher
parent 27d2f101e7
commit 4023c3cbc3

View File

@ -64,8 +64,7 @@ static void gfs2_tune_init(struct gfs2_tune *gt)
void free_sbd(struct gfs2_sbd *sdp)
{
if (sdp->sd_lkstats)
free_percpu(sdp->sd_lkstats);
free_percpu(sdp->sd_lkstats);
kfree(sdp);
}