Commit ab37c305 authored by Minghao Chi's avatar Minghao Chi Committed by Andreas Gruenbacher
Browse files

gfs2: Remove redundant NULL check before kfree



kfree on NULL pointer is a no-op.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent fdaf9a58
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1066,7 +1066,6 @@ 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);
	from->count = orig_count - written;
	return written ? written : ret;