Search Linux Wireless

Re: [PATCH 1/2] ath9k: remove nasty FAIL macro from ath9k_hw_reset()

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

 



On Fri, Oct 10, 2008 at 8:04 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Fri, 2008-10-10 at 13:59 -0700, Luis R. Rodriguez wrote:
>> On Fri, Oct 10, 2008 at 12:40 PM, Johannes Berg
>> <johannes@xxxxxxxxxxxxxxxx> wrote:
>> > On Fri, 2008-10-10 at 05:22 -0700, Luis R. Rodriguez wrote:
>> >
>> >>       ecode = ath9k_hw_process_ini(ah, chan, macmode);
>> >> -     if (ecode != 0)
>> >> +     if (ecode != 0) {
>> >> +             ecode = -EINVAL;
>> >>               goto bad;
>> >
>> > didn't this actually want to pass up ecode?
>>
>> Fuck yeah,
>>
>> bad:
>>         if (status)
>>                 *status = ecode;
>>         return false;
>
> What I meant was that it's overwriting the return value from process_ini
> now, was that intentional?

Ah no, if its already applied I'll send a follow up, thanks for reviewing.

  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