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

From: Jesper Juhl
Date: Sun Apr 16 2006 - 21:43:21 EST


Remove redundant NULL checks before kfree
for fs/

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/