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, 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?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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