The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=538f8bdc8bc4ebb868ab0ae12537815d27e310eb

commit 538f8bdc8bc4ebb868ab0ae12537815d27e310eb
Author:     Warner Losh <[email protected]>
AuthorDate: 2023-10-27 20:03:51 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2023-10-27 20:03:51 +0000

    otus: splnet isn't a thing, remove place holders
    
    Even though it's if 0'd code, remove splnet/splx. This code can't
    possibly run on FreeBSD, but having it here as a marker isn't especially
    helpful. It causes a false positive on grepping otherwise.
    
    Sponsored by:           Netflix
---
 sys/dev/otus/if_otus.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/otus/if_otus.c b/sys/dev/otus/if_otus.c
index aee765ff4ac8..c27b982d2d6e 100644
--- a/sys/dev/otus/if_otus.c
+++ b/sys/dev/otus/if_otus.c
@@ -3059,17 +3059,14 @@ otus_calibrate_to(void *arg, int pending)
        device_printf(sc->sc_dev, "%s: called\n", __func__);
        struct ieee80211com *ic = &sc->sc_ic;
        struct ieee80211_node *ni;
-       int s;
 
        if (usbd_is_dying(sc->sc_udev))
                return;
 
        usbd_ref_incr(sc->sc_udev);
 
-       s = splnet();
        ni = ic->ic_bss;
        ieee80211_amrr_choose(&sc->amrr, ni, &((struct otus_node *)ni)->amn);
-       splx(s);
 
        if (!usbd_is_dying(sc->sc_udev))
                timeout_add_sec(&sc->calib_to, 1);

Reply via email to