]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
coda: kill redundant cast in coda_alloc_inode()
authorJesper Juhl <jj@chaosbits.net>
Thu, 9 Dec 2010 22:25:09 +0000 (23:25 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 9 Dec 2010 23:15:59 +0000 (00:15 +0100)
kmem_cache_alloc() returns a void pointer which there is no need to cast.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
fs/coda/inode.c

index 5ea57c8c7f97032abe286dc97c9e3b5dc041f4a6..1a49c1708a54d9e63a0852b5b655b487b0d0859c 100644 (file)
@@ -45,7 +45,7 @@ static struct kmem_cache * coda_inode_cachep;
 static struct inode *coda_alloc_inode(struct super_block *sb)
 {
        struct coda_inode_info *ei;
-       ei = (struct coda_inode_info *)kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL);
+       ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL);
        if (!ei)
                return NULL;
        memset(&ei->c_fid, 0, sizeof(struct CodaFid));