mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/5] Remove redundant NULL checks before [kv]free - in fs/
@ 2006-04-17  1:29 Jesper Juhl
  2006-04-19  4:42 ` Mark Fasheh
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2006-04-17  1:29 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Morton, Mark Fasheh, Kurt Hackel, ocfs2-devel,
	Jan Engelhardt, Jesper Juhl

Remove redundant NULL checks before kfree
for fs/

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 fs/ocfs2/vote.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff -upr linux-2.6.17-rc1-git12-orig/fs/ocfs2/vote.c linux-2.6.17-rc1-git12/fs/ocfs2/vote.c
--- linux-2.6.17-rc1-git12-orig/fs/ocfs2/vote.c	2006-04-09 13:58:32.000000000 +0200
+++ linux-2.6.17-rc1-git12/fs/ocfs2/vote.c	2006-04-16 15:03:05.000000000 +0200
@@ -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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-19  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-17  1:29 [PATCH 1/5] Remove redundant NULL checks before [kv]free - in fs/ Jesper Juhl
2006-04-19  4:42 ` Mark Fasheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome