Search Linux Wireless

Re: [PATCH 1/3] ath9k: fix custom regulatory call position

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 19, 2009 at 3:33 PM, Bob Copeland <me@xxxxxxxxxxxxxxx> wrote:
> On Tue, May 19, 2009 at 5:49 PM, Luis R. Rodriguez > ---
> a/drivers/net/wireless/ath/ath9k/main.c
>> +++ b/drivers/net/wireless/ath/ath9k/main.c
>> @@ -1412,8 +1412,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
>>        for (i = 0; i < sc->keymax; i++)
>>                ath9k_hw_keyreset(ah, (u16) i);
>>
>> -       error = ath_regd_init(&sc->sc_ah->regulatory, sc->hw->wiphy,
>> -                             ath9k_reg_notifier);
>>        if (error)
>>                goto bad;
>
> Is the "if (error)" check still valid?

Sure, although we'll never hit it, we should just make ath_regd_init() void.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux