Module Name: src Committed By: rillig Date: Sat Feb 26 15:04:40 UTC 2022
Modified Files: src/sys/dev/pci: if_wm.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.728 -r1.729 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_wm.c diff -u src/sys/dev/pci/if_wm.c:1.728 src/sys/dev/pci/if_wm.c:1.729 --- src/sys/dev/pci/if_wm.c:1.728 Sat Feb 26 14:53:05 2022 +++ src/sys/dev/pci/if_wm.c Sat Feb 26 15:04:39 2022 @@ -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 @@ wm_txrxintr_disable(struct wm_queue *wmq 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_txrxintr_enable(struct wm_queue *wmq) 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; } /*