mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
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>
This commit is contained in:
parent
b3b29cd106
commit
88269b880a
1 changed files with 2 additions and 4 deletions
|
@ -206,10 +206,8 @@ xfs_generic_create(
|
|||
xfs_finish_inode_setup(ip);
|
||||
|
||||
out_free_acl:
|
||||
if (default_acl)
|
||||
posix_acl_release(default_acl);
|
||||
if (acl)
|
||||
posix_acl_release(acl);
|
||||
posix_acl_release(default_acl);
|
||||
posix_acl_release(acl);
|
||||
return error;
|
||||
|
||||
out_cleanup_inode:
|
||||
|
|
Loading…
Reference in a new issue