Skip to content

Commit 4023c3c

Browse files
Chen NiAndreas Gruenbacher
authored andcommitted
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>
1 parent 27d2f10 commit 4023c3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/gfs2/ops_fstype.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ static void gfs2_tune_init(struct gfs2_tune *gt)
6464

6565
void free_sbd(struct gfs2_sbd *sdp)
6666
{
67-
if (sdp->sd_lkstats)
68-
free_percpu(sdp->sd_lkstats);
67+
free_percpu(sdp->sd_lkstats);
6968
kfree(sdp);
7069
}
7170

0 commit comments

Comments
 (0)