]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove unnecessary variable udqp from xfs_ioctl_setattr
authorKaixu Xia <kaixuxia@tencent.com>
Thu, 23 Apr 2020 04:54:29 +0000 (21:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:14 +0000 (09:03 -0700)
commitdce90259e1d4c12b989fe61103c56dd68ca4ad96
treef169dee353fa92c6770e24e54f8a4709936d6f5f
parent695c483f1c1804c03c58237189b47f1c02c0aba3
xfs: remove unnecessary variable udqp from xfs_ioctl_setattr

The initial value of variable udqp is NULL, and we only set the
flag XFS_QMOPT_PQUOTA in xfs_qm_vop_dqalloc() function, so only
the pdqp value is initialized and the udqp value is still NULL.
Since the udqp value is NULL in the rest part of xfs_ioctl_setattr()
function, it is meaningless and do nothing. So remove it from
xfs_ioctl_setattr().

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_ioctl.c