]> git.neil.brown.name Git - history.git/commitdiff
[XFS] xfs_Gqm_init cannot fail, dont check return value.
authorNathan Scott <nathans@sgi.com>
Thu, 19 Aug 2004 20:30:50 +0000 (06:30 +1000)
committerNathan Scott <nathans@lips.borg.umn.edu>
Thu, 19 Aug 2004 20:30:50 +0000 (06:30 +1000)
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: Nathan Scott <nathans@sgi.com>
fs/xfs/quota/xfs_qm.c

index 3bdb9ee0028a6724e9ac27fbaecaa2cdcef51991..c42c8d2eaaf56bfe961ac3809c6531a503aed699 100644 (file)
@@ -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 ...