Commit 4ad98457 authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

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

Remove redundant NULL checks before kfree for fs/
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Acked-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 59e0e0ac
...@@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb) ...@@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb)
} }
bail: bail:
if (request)
kfree(request); kfree(request);
return status; return status;
} }
...@@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb) ...@@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb)
} }
bail: bail:
if (request)
kfree(request); kfree(request);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment