Commit 7c5b45b3 authored by Nathan Scott's avatar Nathan Scott Committed by Nathan Scott

[XFS] xfs_Gqm_init cannot fail, dont check return value.

Removes a bit of dead code and a false positive from the Stanford
lock checker to boot.

SGI Modid: xfs-linux:xfs-kern:174815a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent d4cdbfd6
......@@ -229,11 +229,8 @@ xfs_qm_hold_quotafs_ref(
*/
XFS_QM_LOCK(xfs_Gqm);
if (xfs_Gqm == NULL) {
if ((xfs_Gqm = xfs_Gqm_init()) == NULL) {
return (XFS_ERROR(EINVAL));
}
}
if (xfs_Gqm == NULL)
xfs_Gqm = xfs_Gqm_init();
/*
* We can keep a list of all filesystems with quotas mounted for
* debugging and statistical purposes, but ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment