Remove gratuitous double negation of ath_hal_hasdiversity() result
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 24 Mar 2010 14:07:47 +0000 (14:07 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 24 Mar 2010 14:07:47 +0000 (14:07 +0000)
Reported by N.Leiten <nickleiten@gmail.com>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4128 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 68db5ae90f861647a716a7c6c7ad996c098ff0ed..5adcf0fe0cef070760a0fefc0e588b18c8ce1bc4 100644 (file)
@@ -1029,7 +1029,7 @@ ath_attach(u_int16_t devid, struct net_device *dev, HAL_BUS_TAG tag)
 
        /* Query the HAL about antenna support
         * Enable RX fast diversity if HAL has support. */
-       sc->sc_hasdiversity = sc->sc_diversity = !!ath_hal_hasdiversity(ah);
+       sc->sc_hasdiversity = sc->sc_diversity = ath_hal_hasdiversity(ah);
        ath_hal_setdiversity(ah, sc->sc_diversity);
 
        sc->sc_rxantenna = ath_hal_getdefantenna(ah);