Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern remove infinite loop on error, extra parens on return.



details:   https://anonhg.NetBSD.org/src/rev/7b6128c11f68
branches:  trunk
changeset: 780576:7b6128c11f68
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jul 30 10:45:03 2012 +0000

description:
remove infinite loop on error, extra parens on return.

diffstat:

 sys/kern/uipc_usrreq.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 607a9e4b7119 -r 7b6128c11f68 sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c    Mon Jul 30 10:42:24 2012 +0000
+++ b/sys/kern/uipc_usrreq.c    Mon Jul 30 10:45:03 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_usrreq.c,v 1.138 2012/07/30 10:42:24 christos Exp $       */
+/*     $NetBSD: uipc_usrreq.c,v 1.139 2012/07/30 10:45:03 christos Exp $       */
 
 /*-
  * Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.138 2012/07/30 10:42:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.139 2012/07/30 10:45:03 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1341,12 +1341,11 @@
                        *rp++ = 0;
                        unp_discard_now(fp);
                }
-               goto out;
        }
 
        rw_exit(&p->p_cwdi->cwdi_lock);
        kmem_free(fdp, nfds * sizeof(int));
-       return (error);
+       return error;
 }
 
 int



Home | Main Index | Thread Index | Old Index