From: Christoph Hellwig Date: Thu, 27 Feb 2020 01:30:32 +0000 (-0800) Subject: xfs: remove the name == NULL check from xfs_attr_args_init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e;p=linux.git 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 Reviewed-by: Dave Chinner Reviewed-by: Chandan Rajendra Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c index bb391b96cd780..a968158b9bb16 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;