diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-06-27 09:55:04 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 00:32:48 (GMT) |
commit | 4ad98457aa545bc4d03d417da86325507aa586ec (patch) | |
tree | 212fe02cff7b38c27e8bbaf3136f05e452531c0b | |
parent | 59e0e0ace7d33e8c0c125042f153f80fcc56b39e (diff) | |
download | linux-4ad98457aa545bc4d03d417da86325507aa586ec.tar.xz |
[PATCH] Remove redundant NULL checks before [kv]free - in fs/
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>
-rw-r--r-- | fs/ocfs2/vote.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c index ee42765..cf70fe2 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; } |