summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFiro Yang <firogm@gmail.com>2015-04-23 17:17:51 +0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-04-23 15:16:16 -0400
commitc456aacf3c27b9a3013d4524fdc4bd0bb61fb884 (patch)
tree146ca01a6c39ae8c1aefa06d15369d4b7fd4fedb /fs
parentce85cfbed6fe3dbc01bd1976b23ac3e97878cde6 (diff)
downloadlinux-c456aacf3c27b9a3013d4524fdc4bd0bb61fb884.tar.bz2
nfs: Remove unneeded casts in nfs
Don't unnecessarily cast allocation return value in fs/nfs/inode.c::nfs_alloc_inode(). Signed-off-by: Firo Yang <firogm@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 2d8270801215..8a464684e8c8 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1837,7 +1837,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
struct inode *nfs_alloc_inode(struct super_block *sb)
{
struct nfs_inode *nfsi;
- nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL);
+ nfsi = kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL);
if (!nfsi)
return NULL;
nfsi->flags = 0UL;