ocfs2: remove bogus test from ocfs2_read_locked_inode()
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / xattr.c
index 016f01df382514fd6dc93ce1e7386c147909c54d..662f8dee149f992d1bbed4f5d38539f549103d1f 100644 (file)
@@ -1284,7 +1284,7 @@ int ocfs2_xattr_get_nolock(struct inode *inode,
                return -EOPNOTSUPP;
 
        if (!(oi->ip_dyn_features & OCFS2_HAS_XATTR_FL))
-               ret = -ENODATA;
+               return -ENODATA;
 
        xis.inode_bh = xbs.inode_bh = di_bh;
        di = (struct ocfs2_dinode *)di_bh->b_data;