summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2009-11-13 22:39:35 +0000
committerjoerg <joerg@NetBSD.org>2009-11-13 22:39:35 +0000
commite7123f329abc48f7f97fb301288b1247ef6f19dd (patch)
tree15a74a1cb6b40e70e482cdefc75ef8457dcf949a /sys/compat/linux/common/linux_socket.c
parent8277e9219554838df6d1b84b20bf6142e17ca4c3 (diff)
Return the result of copyout. Reminded by Niolas Joly.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
-rw-r--r--sys/compat/linux/common/linux_socket.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 14230257a34..4c3b64d7dbe 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -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 @@ linux_getifname(struct lwp *l, register_t *retval, void *data)
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