diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2025-04-17 16:38:39 +0800 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2025-04-21 18:20:36 +0200 |
| commit | 4023c3cbc38f891c0d54d45a0ba0a1b4c289214a (patch) | |
| tree | 6503181ea44efe2533951f51cc6177a56ea4bb9b | |
| parent | 27d2f101e7890b1f0d8d91f1bf041921f81d5a31 (diff) | |
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>
| -rw-r--r-- | fs/gfs2/ops_fstype.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index ea5b3c5c6e1c..8f9bb6677db7 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -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); } |
