diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-12-09 23:25:09 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-12-10 00:15:59 +0100 |
commit | 747fecab32e47180e2668c2b22b25752d371e636 (patch) | |
tree | ee53726ca7f5a8093aa208a4708080c16faf8afc /fs/coda | |
parent | fa9f90be745d3b600a9d97a063be404c5e5d9071 (diff) | |
download | kernel_samsung_aries-747fecab32e47180e2668c2b22b25752d371e636.zip kernel_samsung_aries-747fecab32e47180e2668c2b22b25752d371e636.tar.gz kernel_samsung_aries-747fecab32e47180e2668c2b22b25752d371e636.tar.bz2 |
coda: kill redundant cast in coda_alloc_inode()
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>
Diffstat (limited to 'fs/coda')
-rw-r--r-- | fs/coda/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 5ea57c8..1a49c17 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c @@ -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)); |