Remove redundant NULL checks before kfree
for fs/
Signed-off-by: Jesper Juhl <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]