Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg avoid set-but-unused-variable warnings.
details: https://anonhg.NetBSD.org/src/rev/ad8de5a679e2
branches: trunk
changeset: 988204:ad8de5a679e2
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Oct 02 22:14:32 2021 +0000
description:
avoid set-but-unused-variable warnings.
diffstat:
sys/net/lagg/if_lagg_lacp.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r fec00a6c1dbe -r ad8de5a679e2 sys/net/lagg/if_lagg_lacp.c
--- a/sys/net/lagg/if_lagg_lacp.c Sat Oct 02 20:52:09 2021 +0000
+++ b/sys/net/lagg/if_lagg_lacp.c Sat Oct 02 22:14:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg_lacp.c,v 1.4 2021/09/30 04:23:30 yamaguchi Exp $ */
+/* $NetBSD: if_lagg_lacp.c,v 1.5 2021/10/02 22:14:32 mrg Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.4 2021/09/30 04:23:30 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.5 2021/10/02 22:14:32 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_lagg.h"
@@ -705,14 +705,12 @@
{
struct lacp_softc *lsc;
struct lacp_port *lacpp;
- struct lagg_softc *sc;
struct ifreq ifr;
lsc = (struct lacp_softc *)xlsc;
- sc = lsc->lsc_softc;
lacpp = lp->lp_proto_ctx;
- KASSERT(LAGG_LOCKED(sc));
+ KASSERT(LAGG_LOCKED(lsc->lsc_softc));
lagg_workq_wait(lsc->lsc_workq, &lacpp->lp_work_smtx);
lagg_workq_wait(lsc->lsc_workq, &lacpp->lp_work_marker);
Home |
Main Index |
Thread Index |
Old Index