mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02: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 @@ static ssize_t gfs2_file_buffered_write(struct kiocb *iocb,
|
|||
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…
Reference in New Issue
Block a user