Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig trim extraneous return statement



details:   https://anonhg.NetBSD.org/src/rev/6d30d4b5e7e3
branches:  trunk
changeset: 970991:6d30d4b5e7e3
user:      plunky <plunky%NetBSD.org@localhost>
date:      Fri Apr 10 14:32:50 2020 +0000

description:
trim extraneous return statement

diffstat:

 sbin/ifconfig/af_inet.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f78d43cbd384 -r 6d30d4b5e7e3 sbin/ifconfig/af_inet.c
--- a/sbin/ifconfig/af_inet.c   Fri Apr 10 12:38:40 2020 +0000
+++ b/sbin/ifconfig/af_inet.c   Fri Apr 10 14:32:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: af_inet.c,v 1.26 2019/08/16 10:33:17 msaitoh Exp $     */
+/*     $NetBSD: af_inet.c,v 1.27 2020/04/10 14:32:50 plunky Exp $      */
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: af_inet.c,v 1.26 2019/08/16 10:33:17 msaitoh Exp $");
+__RCSID("$NetBSD: af_inet.c,v 1.27 2020/04/10 14:32:50 plunky Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -219,7 +219,6 @@
        if (prog_ioctl(s, SIOCGIFAFLAG_IN, &ifr) == -1)
                err(EXIT_FAILURE, "SIOCGIFAFLAG_IN");
        return ifr.ifr_addrflags & flags ? true : false;
-       return false;
 }
 #endif
 



Home | Main Index | Thread Index | Old Index