diff options
| author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2019-01-25 01:05:18 +0000 |
|---|---|---|
| committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2019-01-25 01:05:18 +0000 |
| commit | 9df9e9361cddc9586f64e2bfec552dd01284fac3 (patch) | |
| tree | 23ddab46919390c2d8415927bcde80038168d368 /sys/dev/rtwn | |
| parent | 60315f8f9de3087b0a4ee7fe85a38dfe0c3e0c02 (diff) | |
Notes
Diffstat (limited to 'sys/dev/rtwn')
| -rw-r--r-- | sys/dev/rtwn/pci/rtwn_pci_reg.c | 2 | ||||
| -rw-r--r-- | sys/dev/rtwn/usb/rtwn_usb_reg.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/rtwn/pci/rtwn_pci_reg.c b/sys/dev/rtwn/pci/rtwn_pci_reg.c index 664fb33e6db8..6fe188c3f76d 100644 --- a/sys/dev/rtwn/pci/rtwn_pci_reg.c +++ b/sys/dev/rtwn/pci/rtwn_pci_reg.c @@ -118,6 +118,6 @@ rtwn_pci_delay(struct rtwn_softc *sc, int usec) DELAY(usec); else { (void) mtx_sleep(sc, &sc->sc_mtx, 0, "rtwn_pci", - MAX(msecs_to_ticks(usec / 1000), 1)); + msecs_to_ticks(usec / 1000)); } } diff --git a/sys/dev/rtwn/usb/rtwn_usb_reg.c b/sys/dev/rtwn/usb/rtwn_usb_reg.c index 2091c6ac6444..c464b69d7ece 100644 --- a/sys/dev/rtwn/usb/rtwn_usb_reg.c +++ b/sys/dev/rtwn/usb/rtwn_usb_reg.c @@ -172,8 +172,6 @@ rtwn_usb_delay(struct rtwn_softc *sc, int usec) /* 1ms delay as default is too big. */ if (usec < 1000) DELAY(usec); - else { - usb_pause_mtx(&sc->sc_mtx, - MAX(msecs_to_ticks(usec / 1000), 1)); - } + else + usb_pause_mtx(&sc->sc_mtx, msecs_to_ticks(usec / 1000)); } |
