xfs: remove unnecessary null check in xfs_generic_create
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 4 Dec 2020 00:43:19 +0000 (16:43 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commit88269b880a8ea38cf607e684906f3b00acd5b56b
tree4d1e19c36efff133b828a7fa088e5dc10e84cc58
parentb3b29cd1069c56fbfdd63e650372530f2e26e911
xfs: remove unnecessary null check in xfs_generic_create

The function posix_acl_release() test the passed-in argument and
move on only when it is non-null, so maybe the null check in
xfs_generic_create is unnecessary.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iops.c