summaryrefslogtreecommitdiff
path: root/fs/orangefs/inode.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-03-16 14:35:21 -0400
committerMike Marshall <hubcap@omnibond.com>2016-03-17 14:33:56 -0400
commita4c680a027f52e179175fe451c69a55aba748efd (patch)
treefd46e539b8192a8ca23631717e9160bc7d141b97 /fs/orangefs/inode.c
parent02a5cc537dfa222583b6b6c17451a67816fce9f5 (diff)
orangefs: remove paranoia in orangefs_set_inode
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/inode.c')
-rw-r--r--fs/orangefs/inode.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 4a350ec2dbb3..a45625240b17 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -365,16 +365,8 @@ static inline ino_t orangefs_handle_hash(struct orangefs_object_kref *ref)
static int orangefs_set_inode(struct inode *inode, void *data)
{
struct orangefs_object_kref *ref = (struct orangefs_object_kref *) data;
- struct orangefs_inode_s *orangefs_inode = NULL;
-
- /* Make sure that we have sane parameters */
- if (!data || !inode)
- return 0;
- orangefs_inode = ORANGEFS_I(inode);
- if (!orangefs_inode)
- return 0;
- orangefs_inode->refn.fs_id = ref->fs_id;
- orangefs_inode->refn.khandle = ref->khandle;
+ ORANGEFS_I(inode)->refn.fs_id = ref->fs_id;
+ ORANGEFS_I(inode)->refn.khandle = ref->khandle;
return 0;
}