From: Jesper Juhl Date: Tue, 27 Jun 2006 09:55:04 +0000 (-0700) Subject: [PATCH] Remove redundant NULL checks before [kv]free - in fs/ X-Git-Tag: v2.6.18-rc1~484 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad98457aa545bc4d03d417da86325507aa586ec;p=linux-2.6 [PATCH] Remove redundant NULL checks before [kv]free - in fs/ Remove redundant NULL checks before kfree for fs/ Signed-off-by: Jesper Juhl Acked-by: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c index ee42765a85..cf70fe2075 100644 --- a/fs/ocfs2/vote.c +++ b/fs/ocfs2/vote.c @@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb) } bail: - if (request) - kfree(request); - + kfree(request); return status; } @@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb) } bail: - if (request) - kfree(request); - + kfree(request); return status; }