Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci if_wm.c: fix value return from void function
details: https://anonhg.NetBSD.org/src/rev/28ff61afa64b
branches: trunk
changeset: 362031:28ff61afa64b
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Feb 26 15:04:39 2022 +0000
description:
if_wm.c: fix value return from void function
lint complained:
if_wm.c(10028): error:
void function wm_txrxintr_disable cannot return value [213]
if_wm.c(10049): error:
void function wm_txrxintr_enable cannot return value [213]
No functional change.
diffstat:
sys/dev/pci/if_wm.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r e348c29b49f3 -r 28ff61afa64b sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Sat Feb 26 14:53:05 2022 +0000
+++ b/sys/dev/pci/if_wm.c Sat Feb 26 15:04:39 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.728 2022/02/26 14:53:05 rillig Exp $ */
+/* $NetBSD: if_wm.c,v 1.729 2022/02/26 15:04:39 rillig Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.728 2022/02/26 14:53:05 rillig Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.729 2022/02/26 15:04:39 rillig Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -10025,7 +10025,8 @@
struct wm_softc *sc = wmq->wmq_txq.txq_sc;
if (__predict_false(!wm_is_using_msix(sc))) {
- return wm_legacy_intr_disable(sc);
+ wm_legacy_intr_disable(sc);
+ return;
}
if (sc->sc_type == WM_T_82574)
@@ -10046,7 +10047,8 @@
wm_itrs_calculate(sc, wmq);
if (__predict_false(!wm_is_using_msix(sc))) {
- return wm_legacy_intr_enable(sc);
+ wm_legacy_intr_enable(sc);
+ return;
}
/*
Home |
Main Index |
Thread Index |
Old Index