From: "Michael Büsch" <m@bues.ch>
To: Jeeva Anandh <anandhjeeva215@gmail.com>
Cc: linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] b43legacy: remove redundant mask bit set
Date: Wed, 3 Jun 2026 17:56:22 +0200 [thread overview]
Message-ID: <20260603175622.3816e48d@barney> (raw)
In-Reply-To: <20260603125331.6310-1-anandhjeeva215@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]
On Wed, 3 Jun 2026 12:53:31 +0000
Jeeva Anandh <anandhjeeva215@gmail.com> wrote:
> mask is initialized to 0x0000001F, which already contains
> the 0x0010 bit. Therefore the conditional OR operation is
> redundant and can be removed.
>
> Signed-off-by: Jeeva Anandh <anandhjeeva215@gmail.com>
> ---
> drivers/net/wireless/broadcom/b43legacy/main.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/net/wireless/broadcom/b43legacy/main.c b/drivers/net/wireless/broadcom/b43legacy/main.c
> index 6b3e0b2bbca7..d32bffa6f009 100644
> --- a/drivers/net/wireless/broadcom/b43legacy/main.c
> +++ b/drivers/net/wireless/broadcom/b43legacy/main.c
> @@ -1904,8 +1904,6 @@ static int b43legacy_gpio_init(struct b43legacy_wldev *dev)
> mask |= 0x0200;
> set |= 0x0200;
> }
> - if (dev->dev->id.revision >= 2)
> - mask |= 0x0010; /* FIXME: This is redundant. */
>
> #ifdef CONFIG_SSB_DRIVER_PCICORE
> pcidev = bus->pcicore.dev;
No, please don't just remove these things.
There is a FIXME in the comment, because the author already noticed that this
was strange and that there probably is an unknown reason for this.
Just removing this FIXME without clarifying the underlying reason
does not improve the code quality.
--
Michael Büsch
https://bues.ch/
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2026-06-03 16:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 12:53 [PATCH] b43legacy: remove redundant mask bit set Jeeva Anandh
2026-06-03 15:56 ` Michael Büsch [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=20260603175622.3816e48d@barney \
--to=m@bues.ch \
--cc=anandhjeeva215@gmail.com \
--cc=b43-dev@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox