summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French2007-01-21 23:56:22 +0100
committerSteve French2007-01-21 23:56:22 +0100
commit76849e3e97a95f1ef4627b10305d38a686fab112 (patch)
treef38fddbc56d0a95039f1ea6ce78b20a6dcbb9142
parent[CIFS] Update CIFS version number (diff)
downloadkernel-qcow2-linux-76849e3e97a95f1ef4627b10305d38a686fab112.tar.gz
kernel-qcow2-linux-76849e3e97a95f1ef4627b10305d38a686fab112.tar.xz
kernel-qcow2-linux-76849e3e97a95f1ef4627b10305d38a686fab112.zip
[CIFS] Remove 2 unneeded kzalloc casts
Signed-off-by: Ahmed Darwish <darwish.07@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r--fs/cifs/misc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index aedf683f011f..19cc294c7c70 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -71,9 +71,7 @@ sesInfoAlloc(void)
{
struct cifsSesInfo *ret_buf;
- ret_buf =
- (struct cifsSesInfo *) kzalloc(sizeof (struct cifsSesInfo),
- GFP_KERNEL);
+ ret_buf = kzalloc(sizeof (struct cifsSesInfo), GFP_KERNEL);
if (ret_buf) {
write_lock(&GlobalSMBSeslock);
atomic_inc(&sesInfoAllocCount);
@@ -109,9 +107,7 @@ struct cifsTconInfo *
tconInfoAlloc(void)
{
struct cifsTconInfo *ret_buf;
- ret_buf =
- (struct cifsTconInfo *) kzalloc(sizeof (struct cifsTconInfo),
- GFP_KERNEL);
+ ret_buf = kzalloc(sizeof (struct cifsTconInfo), GFP_KERNEL);
if (ret_buf) {
write_lock(&GlobalSMBSeslock);
atomic_inc(&tconInfoAllocCount);