Commit da58688f authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: llite: Remove NULL check before kfree



NULL check before kfree is unnecessary so remove it.
Semantic patch used:
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acdd1b8e
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -192,7 +192,6 @@ int ll_setxattr_common(struct inode *inode, const char *name,
			 valid, name, pv, size, 0, flags,
			 ll_i2suppgid(inode), &req);
#ifdef CONFIG_FS_POSIX_ACL
	if (new_value != NULL)
	/*
	 * Release the posix ACL space.
	 */