Skip to contentSkip to conversation

Remove redundant NULL checks before [kv]free - in fs/

PATCH In review Jesper Juhl 2 participants 2 messages Apr 17, 2006 – Apr 19, 2006 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 Remove redundant NULL checks before [kv]free - in fs/

Remove redundant NULL checks before kfree
for fs/

---

 fs/ocfs2/vote.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
fs/ocfs2/vote.c +2 -6
diff -upr linux-2.6.17-rc1-git12-orig/fs/ocfs2/vote.c linux-2.6.17-rc1-git12/fs/ocfs2/vote.c
@@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs
 	}
 
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 }
 
@@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocf
 	}
 
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 }