Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Don't set errno. Thanks to skrll@



details:   https://anonhg.NetBSD.org/src/rev/842d16610da9
branches:  trunk
changeset: 338782:842d16610da9
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Jun 08 07:59:54 2015 +0000

description:
Don't set errno. Thanks to skrll@

diffstat:

 sys/netinet/in_selsrc.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 0aa4bb92b668 -r 842d16610da9 sys/netinet/in_selsrc.c
--- a/sys/netinet/in_selsrc.c   Mon Jun 08 06:33:35 2015 +0000
+++ b/sys/netinet/in_selsrc.c   Mon Jun 08 07:59:54 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_selsrc.c,v 1.12 2015/05/02 14:41:32 roy Exp $       */
+/*     $NetBSD: in_selsrc.c,v 1.13 2015/06/08 07:59:54 roy Exp $       */
 
 /*-
  * Copyright (c) 2005 David Young.  All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_selsrc.c,v 1.12 2015/05/02 14:41:32 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_selsrc.c,v 1.13 2015/06/08 07:59:54 roy Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet_conf.h"
@@ -369,10 +369,8 @@
        }
 
        ia = (struct in_ifaddr *)best_ifa;
-       if (ia->ia4_flags & IN_IFF_NOTREADY) {
-               errno = EADDRNOTAVAIL;
+       if (ia->ia4_flags & IN_IFF_NOTREADY)
                return NULL;
-       }
 
 #ifdef GETIFA_DEBUG
        if (in_selsrc_debug) {



Home | Main Index | Thread Index | Old Index