forked from Minki/linux
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>
This commit is contained in:
parent
d0ce643911
commit
79f2280b9b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user