svn commit: r238962 - head/sys/dev/ath/ath_rate/sample

Ben Kaduk minimarmot at gmail.com
Wed Aug 1 00:29:55 UTC 2012


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?

-Ben


More information about the svn-src-all mailing list