Author: kevlo
Date: Fri Dec  2 02:19:03 2011
New Revision: 228195
URL: http://svn.freebsd.org/changeset/base/228195

Log:
  Fix checks for error return from urtw_alloc_rx_data_list() and
  urtw_alloc_tx_data_list().

Modified:
  head/sys/dev/usb/wlan/if_urtw.c

Modified: head/sys/dev/usb/wlan/if_urtw.c
==============================================================================
--- head/sys/dev/usb/wlan/if_urtw.c     Fri Dec  2 02:05:26 2011        
(r228194)
+++ head/sys/dev/usb/wlan/if_urtw.c     Fri Dec  2 02:19:03 2011        
(r228195)
@@ -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;
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to