mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
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>
This commit is contained in:
parent
fdaf9a5840
commit
ab37c305bf
@ -1066,8 +1066,7 @@ out_unlock:
|
||||
gfs2_glock_dq(gh);
|
||||
out_uninit:
|
||||
gfs2_holder_uninit(gh);
|
||||
if (statfs_gh)
|
||||
kfree(statfs_gh);
|
||||
kfree(statfs_gh);
|
||||
from->count = orig_count - written;
|
||||
return written ? written : ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user