Skip to content

Commit

Permalink
[PATCH] Remove redundant NULL checks before [kv]free - in fs/
Browse files Browse the repository at this point in the history
Remove redundant NULL checks before kfree for fs/

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 28, 2006
1 parent 59e0e0a commit 4ad9845
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fs/ocfs2/vote.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb)
}

bail:
if (request)
kfree(request);

kfree(request);
return status;
}

Expand Down Expand Up @@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb)
}

bail:
if (request)
kfree(request);

kfree(request);
return status;
}

Expand Down

0 comments on commit 4ad9845

Please sign in to comment.