mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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:
parent
27d2f101e7
commit
4023c3cbc3
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user