[PATCH] getting rid of all casts of k[cmz]alloc() calls
[linux-2.6-block.git] / fs / lockd / svcshare.c
index 6220dc2a3f2c246e31817902a674648321fd6873..068886de4dda19b176ab2340da64269c05d87da1 100644 (file)
@@ -39,7 +39,7 @@ nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file,
                        return nlm_lck_denied;
        }
 
-       share = (struct nlm_share *) kmalloc(sizeof(*share) + oh->len,
+       share = kmalloc(sizeof(*share) + oh->len,
                                                GFP_KERNEL);
        if (share == NULL)
                return nlm_lck_denied_nolocks;