diff options
author | 2018-01-23 02:53:26 +0000 | |
---|---|---|
committer | 2018-01-23 02:53:26 +0000 | |
commit | 5c36bcedf28d08cf9b2c917f03a6faf65c488409 (patch) | |
tree | 07ecdef8201bdd0d8286d275e9cc6a4b233ddb11 | |
parent | 1. Add a field for configuring the size of edge areas on touchpads. (diff) | |
download | wireguard-openbsd-5c36bcedf28d08cf9b2c917f03a6faf65c488409.tar.xz wireguard-openbsd-5c36bcedf28d08cf9b2c917f03a6faf65c488409.zip |
Fix checks for error return from urtw_alloc_rx_data_list() and
urtw_alloc_tx_data_list() in 8187b init.
From James Jerkins, thanks.
-rw-r--r-- | sys/dev/usb/if_urtw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/if_urtw.c b/sys/dev/usb/if_urtw.c index e5d6a95e5fc..717f1abd438 100644 --- a/sys/dev/usb/if_urtw.c +++ b/sys/dev/usb/if_urtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtw.c,v 1.66 2017/08/18 00:49:51 kevlo Exp $ */ +/* $OpenBSD: if_urtw.c,v 1.67 2018/01/23 02:53:26 kevlo Exp $ */ /*- * Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org> @@ -3596,7 +3596,6 @@ urtw_8187b_init(struct ifnet *ifp) struct urtw_softc *sc = ifp->if_softc; struct urtw_rf *rf = &sc->sc_rf; struct ieee80211com *ic = &sc->sc_ic; - int ret; uint8_t data; usbd_status error; @@ -3685,10 +3684,10 @@ urtw_8187b_init(struct ifnet *ifp) error = urtw_open_pipes(sc); if (error != 0) goto fail; - ret = urtw_alloc_rx_data_list(sc); + error = urtw_alloc_rx_data_list(sc); if (error != 0) goto fail; - ret = urtw_alloc_tx_data_list(sc); + error = urtw_alloc_tx_data_list(sc); if (error != 0) goto fail; sc->sc_flags |= URTW_INIT_ONCE; |