projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce85cfb
)
nfs: Remove unneeded casts in nfs
author
Firo Yang
<firogm@gmail.com>
Thu, 23 Apr 2015 09:17:51 +0000
(17:17 +0800)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 23 Apr 2015 19:16:16 +0000
(15:16 -0400)
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>
fs/nfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index 2d82708012158792c1f1a0087d8066443595c34c..8a464684e8c87c2d089d8ab4b1a8cdc3032c0dd6 100644
(file)
--- 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;