diff options
| -rw-r--r-- | fs/xfs/libxfs/xfs_attr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c index af1ecb19121e..6622d46ddec3 100644 --- a/fs/xfs/libxfs/xfs_attr.c +++ b/fs/xfs/libxfs/xfs_attr.c | |||
| @@ -131,9 +131,6 @@ xfs_attr_get( | |||
| 131 | if (XFS_FORCED_SHUTDOWN(ip->i_mount)) | 131 | if (XFS_FORCED_SHUTDOWN(ip->i_mount)) |
| 132 | return -EIO; | 132 | return -EIO; |
| 133 | 133 | ||
| 134 | if (!xfs_inode_hasattr(ip)) | ||
| 135 | return -ENOATTR; | ||
| 136 | |||
| 137 | error = xfs_attr_args_init(&args, ip, name, flags); | 134 | error = xfs_attr_args_init(&args, ip, name, flags); |
| 138 | if (error) | 135 | if (error) |
| 139 | return error; | 136 | return error; |
| @@ -392,9 +389,6 @@ xfs_attr_remove( | |||
| 392 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) | 389 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) |
| 393 | return -EIO; | 390 | return -EIO; |
| 394 | 391 | ||
| 395 | if (!xfs_inode_hasattr(dp)) | ||
| 396 | return -ENOATTR; | ||
| 397 | |||
| 398 | error = xfs_attr_args_init(&args, dp, name, flags); | 392 | error = xfs_attr_args_init(&args, dp, name, flags); |
| 399 | if (error) | 393 | if (error) |
| 400 | return error; | 394 | return error; |
