diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-06-27 02:55:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 17:32:48 -0700 |
commit | 4ad98457aa545bc4d03d417da86325507aa586ec (patch) | |
tree | 212fe02cff7b38c27e8bbaf3136f05e452531c0b /fs/ocfs2 | |
parent | 59e0e0ace7d33e8c0c125042f153f80fcc56b39e (diff) | |
download | linux-stable-4ad98457aa545bc4d03d417da86325507aa586ec.tar.gz linux-stable-4ad98457aa545bc4d03d417da86325507aa586ec.tar.bz2 linux-stable-4ad98457aa545bc4d03d417da86325507aa586ec.zip |
[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>
Diffstat (limited to 'fs/ocfs2')
-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 ee42765a8553..cf70fe2075b8 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; } |