Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix unmatched return type. The return value of w...
details: https://anonhg.NetBSD.org/src/rev/a95cd2dc1213
branches: trunk
changeset: 359101:a95cd2dc1213
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Jan 29 04:17:32 2018 +0000
description:
Fix unmatched return type. The return value of wm_txeof() is not useded yet.
diffstat:
sys/dev/pci/if_wm.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 5e537ea4187a -r a95cd2dc1213 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Mon Jan 29 03:42:53 2018 +0000
+++ b/sys/dev/pci/if_wm.c Mon Jan 29 04:17:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.560 2018/01/29 03:42:30 knakahara Exp $ */
+/* $NetBSD: if_wm.c,v 1.561 2018/01/29 04:17:32 knakahara Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.560 2018/01/29 03:42:30 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.561 2018/01/29 04:17:32 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -8044,7 +8044,6 @@
struct wm_softc *sc = txq->txq_sc;
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
struct wm_txsoft *txs;
- bool processed = false;
int count = 0;
int i;
uint8_t status;
@@ -8085,7 +8084,6 @@
break;
}
- processed = true;
count++;
DPRINTF(WM_DEBUG_TX,
("%s: TX: job %d done: descs %d..%d\n",
@@ -8142,7 +8140,7 @@
if (txq->txq_sfree == WM_TXQUEUELEN(txq))
ifp->if_timer = 0;
- return processed;
+ return count;
}
static inline uint32_t
Home |
Main Index |
Thread Index |
Old Index