![]() | |||||||||||||
Messages in this thread Patch in this message |
Remove redundant NULL checks before kfree for fs/ Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> --- fs/ocfs2/vote.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff -upr linux-2.6.17-rc1-git12-orig/fs/ocfs2/vote.c linux-2.6.17-rc1-git12/fs/ocfs2/vote.c --- linux-2.6.17-rc1-git12-orig/fs/ocfs2/vote.c 2006-04-09 13:58:32.000000000 +0200 +++ linux-2.6.17-rc1-git12/fs/ocfs2/vote.c 2006-04-16 15:03:05.000000000 +0200 @@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs } bail: - if (request) - kfree(request); - + kfree(request); return status; } @@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocf } bail: - if (request) - kfree(request); - + kfree(request); return status; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-04-17 01:45 [from the cache] ©2003-2008 | |||||||||||||