Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/agr Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/09b004ea54a6
branches: trunk
changeset: 789919:09b004ea54a6
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 20:47:59 2013 +0000
description:
Remove unused variable
diffstat:
sys/net/agr/if_agr.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 030809a0b9b2 -r 09b004ea54a6 sys/net/agr/if_agr.c
--- a/sys/net/agr/if_agr.c Thu Sep 12 20:44:02 2013 +0000
+++ b/sys/net/agr/if_agr.c Thu Sep 12 20:47:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_agr.c,v 1.30 2011/10/19 01:49:50 dyoung Exp $ */
+/* $NetBSD: if_agr.c,v 1.31 2013/09/12 20:47:59 martin Exp $ */
/*-
* Copyright (c)2005 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_agr.c,v 1.30 2011/10/19 01:49:50 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_agr.c,v 1.31 2013/09/12 20:47:59 martin Exp $");
#include "opt_inet.h"
@@ -293,7 +293,6 @@
agr_vlan_check(struct ifnet *ifp, struct agr_softc *sc)
{
struct ethercom *ec = (void *)ifp;
- int error;
/* vlans in sync? */
if (sc->sc_nvlans == ec->ec_nvlans) {
@@ -302,11 +301,11 @@
if (sc->sc_nvlans == 0) {
/* vlan added */
- error = agr_port_foreach(sc, agr_vlan_add, NULL);
+ agr_port_foreach(sc, agr_vlan_add, NULL);
sc->sc_nvlans = ec->ec_nvlans;
} else if (ec->ec_nvlans == 0) {
/* vlan removed */
- error = agr_port_foreach(sc, agr_vlan_del, NULL);
+ agr_port_foreach(sc, agr_vlan_del, NULL);
sc->sc_nvlans = 0;
}
}
Home |
Main Index |
Thread Index |
Old Index