diff options
author | Christoph Hellwig <hch@lst.de> | 2020-02-27 02:30:32 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-03 05:55:52 +0100 |
commit | 79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e (patch) | |
tree | 210f7c65cac76044b34e19f881d9b5e94481e078 | |
parent | xfs: factor out a helper for a single XFS_IOC_ATTRMULTI_BY_HANDLE op (diff) | |
download | linux-79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e.tar.xz linux-79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e.zip |
xfs: remove the name == NULL check from xfs_attr_args_init
All callers provide a valid name pointer, remove the redundant check.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r-- | fs/xfs/libxfs/xfs_attr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c index bb391b96cd78..a968158b9bb1 100644 --- a/fs/xfs/libxfs/xfs_attr.c +++ b/fs/xfs/libxfs/xfs_attr.c @@ -65,10 +65,6 @@ xfs_attr_args_init( size_t namelen, int flags) { - - if (!name) - return -EINVAL; - memset(args, 0, sizeof(*args)); args->geo = dp->i_mount->m_attr_geo; args->whichfork = XFS_ATTR_FORK; |