summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-12-02 02:19:03 +0000
committerkevlo <kevlo@FreeBSD.org>2011-12-02 02:19:03 +0000
commit053334be5e2819be57fd050c33f2670b3ee86e19 (patch)
tree8fa71e32fcc61e532a7ca08e5733ced264116a95 /sys/dev
parent50bd4baccdac487457ccb052460e9131deb404b0 (diff)
downloadFreeBSD-src-053334be5e2819be57fd050c33f2670b3ee86e19.zip
FreeBSD-src-053334be5e2819be57fd050c33f2670b3ee86e19.tar.gz
Fix checks for error return from urtw_alloc_rx_data_list() and
urtw_alloc_tx_data_list().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/wlan/if_urtw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/wlan/if_urtw.c b/sys/dev/usb/wlan/if_urtw.c
index 2a52a8c..2f46424 100644
--- a/sys/dev/usb/wlan/if_urtw.c
+++ b/sys/dev/usb/wlan/if_urtw.c
@@ -1053,10 +1053,10 @@ urtw_init_locked(void *arg)
if (!(sc->sc_flags & URTW_INIT_ONCE)) {
ret = urtw_alloc_rx_data_list(sc);
- if (error != 0)
+ if (ret != 0)
goto fail;
ret = urtw_alloc_tx_data_list(sc);
- if (error != 0)
+ if (ret != 0)
goto fail;
sc->sc_flags |= URTW_INIT_ONCE;
}
OpenPOWER on IntegriCloud