From: Christoph Hellwig Date: Wed, 29 Apr 2020 20:08:34 +0000 (-0400) Subject: xfs: remove the name == NULL check from xfs_attr_args_init X-Git-Tag: v5.7.0-rc0~51 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c0d4ea9ce569bc9fae3ff451ae02d9e7aed275d;p=thirdparty%2Fxfsprogs-dev.git xfs: remove the name == NULL check from xfs_attr_args_init Source kernel commit: 79f2280b9bfd54aa37b3fa4a80b0037bd29b4f0e 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 Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr.c b/libxfs/xfs_attr.c index 248f9e837..ee2225a30 100644 --- a/libxfs/xfs_attr.c +++ b/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;