* [PATCH] b43legacy: remove redundant mask bit set
@ 2026-06-03 12:53 Jeeva Anandh
2026-06-03 15:56 ` Michael Büsch
0 siblings, 1 reply; 2+ messages in thread
From: Jeeva Anandh @ 2026-06-03 12:53 UTC (permalink / raw)
To: linux-wireless; +Cc: b43-dev, linux-kernel, Jeeva Anandh
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;
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] b43legacy: remove redundant mask bit set
2026-06-03 12:53 [PATCH] b43legacy: remove redundant mask bit set Jeeva Anandh
@ 2026-06-03 15:56 ` Michael Büsch
0 siblings, 0 replies; 2+ messages in thread
From: Michael Büsch @ 2026-06-03 15:56 UTC (permalink / raw)
To: Jeeva Anandh; +Cc: linux-wireless, b43-dev, linux-kernel
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-03 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 12:53 [PATCH] b43legacy: remove redundant mask bit set Jeeva Anandh
2026-06-03 15:56 ` Michael Büsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox