svn commit: r238962 - head/sys/dev/ath/ath_rate/sample
Andriy Gapon
avg at FreeBSD.org
Wed Aug 1 09:33:26 UTC 2012
on 01/08/2012 03:29 Ben Kaduk said the following:
> On Tue, Jul 31, 2012 at 8:18 PM, Adrian Chadd <adrian at freebsd.org> wrote:
>> --- head/sys/dev/ath/ath_rate/sample/sample.c Tue Jul 31 23:54:15 2012 (r238961)
>> +++ head/sys/dev/ath/ath_rate/sample/sample.c Wed Aug 1 00:18:02 2012 (r238962)
>> @@ -504,7 +504,7 @@ ath_rate_findrate(struct ath_softc *sc,
>>
>> mrr = sc->sc_mrretry;
>> /* XXX check HT protmode too */
>> - if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT) && !sc->sc_mrrprot)
>> + if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT && !sc->sc_mrrprot))
>> mrr = 0;
>>
>> best_rix = pick_best_rate(an, rt, size_bin, !mrr);
>
> Logical '&&' evaluates left-to-right already, so I do not see that the
> current parentheses are needed?
Yeah, adding "!= 0" after the bitwise operation would be much more logical than
shuffling the otherwise useless parentheses.
--
Andriy Gapon
More information about the svn-src-head
mailing list