Commit 1d47bec2 authored by Nathan Scott's avatar Nathan Scott

[XFS] Remove unnecessary local from open_exec dmapi path.

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26247a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent d7ede1aa
...@@ -522,23 +522,18 @@ xfs_file_open_exec( ...@@ -522,23 +522,18 @@ xfs_file_open_exec(
struct inode *inode) struct inode *inode)
{ {
bhv_vnode_t *vp = vn_from_inode(inode); bhv_vnode_t *vp = vn_from_inode(inode);
xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp);
int error = 0;
xfs_inode_t *ip;
if (vp->v_vfsp->vfs_flag & VFS_DMI) { if (unlikely(vp->v_vfsp->vfs_flag & VFS_DMI)) {
ip = xfs_vtoi(vp); xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp);
if (!ip) { xfs_inode_t *ip = xfs_vtoi(vp);
error = -EINVAL;
goto open_exec_out; if (!ip)
} return -EINVAL;
if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ)) { if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ))
error = -XFS_SEND_DATA(mp, DM_EVENT_READ, vp, return -XFS_SEND_DATA(mp, DM_EVENT_READ, vp,
0, 0, 0, NULL); 0, 0, 0, NULL);
}
} }
open_exec_out: return 0;
return error;
} }
#endif /* HAVE_FOP_OPEN_EXEC */ #endif /* HAVE_FOP_OPEN_EXEC */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment