Module Name:    src
Committed By:   dholland
Date:           Sun Jan 29 06:50:54 UTC 2012

Modified Files:
        src/sys/ufs/ufs: ufs_quota.c

Log Message:
Tidy up a bit.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/ufs/ufs/ufs_quota.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/ufs/ufs_quota.c
diff -u src/sys/ufs/ufs/ufs_quota.c:1.86 src/sys/ufs/ufs/ufs_quota.c:1.87
--- src/sys/ufs/ufs/ufs_quota.c:1.86	Sun Jan 29 06:50:15 2012
+++ src/sys/ufs/ufs/ufs_quota.c	Sun Jan 29 06:50:53 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ufs_quota.c,v 1.86 2012/01/29 06:50:15 dholland Exp $	*/
+/*	$NetBSD: ufs_quota.c,v 1.87 2012/01/29 06:50:53 dholland Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.86 2012/01/29 06:50:15 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.87 2012/01/29 06:50:53 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -288,8 +288,10 @@ quota_handle_cmd_put(struct mount *mp, s
 	error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_FS_QUOTA,
 	    KAUTH_REQ_SYSTEM_FS_QUOTA_MANAGE, mp, KAUTH_ARG(kauth_id),
 	    NULL);
-	if (error != 0)
-		goto err;
+	if (error != 0) {
+		return error;
+	}
+
 #ifdef QUOTA
 	if (ump->um_flags & UFS_QUOTA)
 		error = quota1_handle_cmd_put(ump, qk, qv);
@@ -302,11 +304,10 @@ quota_handle_cmd_put(struct mount *mp, s
 #endif
 		panic("quota_handle_cmd_get: no support ?");
 		
-	if (error && error != ENOENT)
-		goto err;
+	if (error == ENOENT) {
+		error = 0;
+	}
 
-	return 0;
- err:
 	return error;
 }
 

Reply via email to