summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorFiro Yang <firogm@gmail.com>2015-04-23 11:17:51 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-04-23 21:16:16 +0200
commitc456aacf3c27b9a3013d4524fdc4bd0bb61fb884 (patch)
tree146ca01a6c39ae8c1aefa06d15369d4b7fd4fedb /fs/nfs/inode.c
parentNFS: Don't attempt to decode missing directory entries (diff)
downloadlinux-c456aacf3c27b9a3013d4524fdc4bd0bb61fb884.tar.xz
linux-c456aacf3c27b9a3013d4524fdc4bd0bb61fb884.zip
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 '')
-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;