All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Arend van Spriel" <arend@broadcom.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: "brcm80211 development" <brcm80211-dev-list@broadcom.com>,
	linux-wireless@vger.kernel.org
Subject: Re: Dead code in brcms_c_compute_rspec
Date: Mon, 25 Feb 2013 11:22:52 +0100	[thread overview]
Message-ID: <512B3B7C.8060508@broadcom.com> (raw)
In-Reply-To: <CACna6rx57gx7fLEq5Om7q2Pbn82vgRRhH5DpkKtsgyPjHKuEvA@mail.gmail.com>

On 02/24/13 14:20, Rafał Miłecki wrote:
> Hey,
>
> I was looking for adding support for more devices in b43 and wanted to
> check how did you handled reading PHY type/id from rxchan/chanstat
> (it's a part of hardware-specific part of RX header).
>
> In rate.c you have brcms_c_compute_rspec which does:
> phy_type = ((rxh->RxChan&  RXS_CHAN_PHYTYPE_MASK)>>  RXS_CHAN_PHYTYPE_SHIFT);
> (you duplicate BRCMS_CHAN_PHYTYPE by the way).
>
> The problem is that:
> #define	RXS_CHAN_PHYTYPE_MASK	0x0007
> and you're comparing the result to the
> #define	PHY_TYPE_LCN		8
> which looks like a minor dead code for me.
>
> You may want to fix that.
>

Thanks, Rafał

That does not seem right. I will look into this.

Gr. AvS


      reply	other threads:[~2013-02-25 10:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-24 13:20 Dead code in brcms_c_compute_rspec Rafał Miłecki
2013-02-25 10:22 ` Arend van Spriel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512B3B7C.8060508@broadcom.com \
    --to=arend@broadcom.com \
    --cc=brcm80211-dev-list@broadcom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=zajec5@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.