Source-Changes-HG archive

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

[src/trunk]: src/sys/compat Return the result of copyout. Reminded by Niolas ...



details:   https://anonhg.NetBSD.org/src/rev/f4232639da39
branches:  trunk
changeset: 749020:f4232639da39
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 13 22:39:35 2009 +0000

description:
Return the result of copyout. Reminded by Niolas Joly.

diffstat:

 sys/compat/linux/common/linux_socket.c     |  8 +++-----
 sys/compat/linux32/common/linux32_socket.c |  8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

diffs (58 lines):

diff -r 3639f01bd9a4 -r f4232639da39 sys/compat/linux/common/linux_socket.c
--- a/sys/compat/linux/common/linux_socket.c    Fri Nov 13 21:45:03 2009 +0000
+++ b/sys/compat/linux/common/linux_socket.c    Fri Nov 13 22:39:35 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_socket.c,v 1.105 2009/11/13 21:45:03 joerg Exp $ */
+/*     $NetBSD: linux_socket.c,v 1.106 2009/11/13 22:39:35 joerg Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.105 2009/11/13 21:45:03 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.106 2009/11/13 22:39:35 joerg Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -1025,9 +1025,7 @@
 
        strncpy(ifr.ifr_name, ifp->if_xname, sizeof(ifr.ifr_name));
 
-       error = copyout(&ifr, data, sizeof(ifr));
-
-       return 0;
+       return copyout(&ifr, data, sizeof(ifr));
 }
 
 int
diff -r 3639f01bd9a4 -r f4232639da39 sys/compat/linux32/common/linux32_socket.c
--- a/sys/compat/linux32/common/linux32_socket.c        Fri Nov 13 21:45:03 2009 +0000
+++ b/sys/compat/linux32/common/linux32_socket.c        Fri Nov 13 22:39:35 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux32_socket.c,v 1.11 2009/11/13 21:45:03 joerg Exp $ */
+/*     $NetBSD: linux32_socket.c,v 1.12 2009/11/13 22:39:35 joerg Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.11 2009/11/13 21:45:03 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.12 2009/11/13 22:39:35 joerg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -407,9 +407,7 @@
 
        strncpy(ifr.ifr_name, ifp->if_xname, sizeof(ifr.ifr_name));
 
-       error = copyout(&ifr, data, sizeof(ifr));
-
-       return 0;
+       return copyout(&ifr, data, sizeof(ifr));
 }
 
 int



Home | Main Index | Thread Index | Old Index