WDEV, ath5k, don't return int from bool function
[deliverable/linux.git] / drivers / net / wireless / ath5k / base.c
index 062d004076a22eb2ece3e7629c0e7da772302b61..81b45b3e0f029e2aad8370d8842a1b9bf79cefc4 100644 (file)
@@ -668,7 +668,10 @@ ath5k_attach(struct pci_dev *pdev, struct ieee80211_hw *hw)
         * return false w/o doing anything.  MAC's that do
         * support it will return true w/o doing anything.
         */
-       if (ah->ah_setup_xtx_desc(ah, NULL, 0, 0, 0, 0, 0, 0))
+       ret = ah->ah_setup_xtx_desc(ah, NULL, 0, 0, 0, 0, 0, 0);
+       if (ret < 0)
+               goto err;
+       if (ret > 0)
                __set_bit(ATH_STAT_MRRETRY, sc->status);
 
        /*
This page took 0.023956 seconds and 5 git commands to generate.