wifi: b43legacy: clean up some inconsistent indentings
PATCH 1/1 wifi: b43legacy: clean up some inconsistent indentings
drivers/net/wireless/broadcom/b43legacy/dma.c:178 priority_to_txring() warn: inconsistent indenting
--- drivers/net/wireless/broadcom/b43legacy/dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/broadcom/b43legacy/dma.c +2 -2
@@ -174,8 +174,8 @@ static struct b43legacy_dmaring *priority_to_txring( {struct b43legacy_dmaring *ring; -/*FIXME: For now we always run on TX-ring-1 */ -return dev->dma.tx_ring1; +/*FIXME: For now we always run on TX-ring-1 */ +return dev->dma.tx_ring1;/* 0 = highest priority */ switch (queue_priority) {
Signature · 1 line
2.20.1.7.g153144c
Quoted 5 lines · Yang Li
drivers/net/wireless/broadcom/b43legacy/dma.c:178priority_to_txring()warn: inconsistent indentingReported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>
wifi patches go to wireless-next, not net-next. No need to resend because of this.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 1 line · On Wed, 20 Dec 2023 09:12:09 +0800 Yang Li <[email protected]> wrote:
This link is not publicly accessible.
drivers/net/wireless/broadcom/b43legacy/dma.c static struct b43legacy_dmaring *priority_to_txring( · line 181
Quoted 12 lines
a/drivers/net/wireless/broadcom/b43legacy/dma.c+++b/drivers/net/wireless/broadcom/b43legacy/dma.c@@ -174,8 +174,8 @@ static structb43legacy_dmaring*priority_to_txring( {drivers/net/wireless/broadcom/b43legacy/dma.c +2
-2struct b43legacy_dmaring *ring; -/*FIXME: For now we always run on TX-ring-1 */ -return dev->dma.tx_ring1; +/*FIXME: For now we always run on TX-ring-1 */ +return dev->dma.tx_ring1;/* 0 = highest priority */ switch (queue_priority) {
Thanks for your patch.
But actually, I am kind of annoyed by the constant stream of whitespace fixing and dead code removal and other trivial changes to this legacy driver.
It does not improve the code to add two tabs to this _ancient_ code.
And I can already see the next patch coming that removes the dead code after this FIXME return. And then the next patch will come to remove this function altogether, and so on and so on.
This driver has a _lot_ of such code, because it is based on reverse engineered knowledge with many many unknowns.
IMO this just creates additional maintenance work and pressure on our maintainers for no good reason.
Signature · 2 lines
Michael Büsch https://bues.ch/
wireless: cleanup patches
Quoted 32 lines · Michael Büsch
Quoted 1 line · On Wed, 20 Dec 2023 09:12:09 +0800 Yang Li <[email protected]> wrote:
This link is not publicly accessible.
drivers/net/wireless/broadcom/b43legacy/dma.c static struct b43legacy_dmaring *priority_to_txring( · line 181
Quoted 12 lines
a/drivers/net/wireless/broadcom/b43legacy/dma.c+++b/drivers/net/wireless/broadcom/b43legacy/dma.c@@ -174,8 +174,8 @@ static structb43legacy_dmaring*priority_to_txring( {drivers/net/wireless/broadcom/b43legacy/dma.c +2
-2struct b43legacy_dmaring *ring; -/*FIXME: For now we always run on TX-ring-1 */ -return dev->dma.tx_ring1; +/*FIXME: For now we always run on TX-ring-1 */ +return dev->dma.tx_ring1;/* 0 = highest priority */ switch (queue_priority) {Thanks for your patch.
But actually, I am kind of annoyed by the constant stream of whitespace fixing and dead code removal and other trivial changes to this legacy driver.
It does not improve the code to add two tabs to this _ancient_ code.
And I can already see the next patch coming that removes the dead code after this FIXME return. And then the next patch will come to remove this function altogether, and so on and so on.
Quoted 5 lines
This driver has a _lot_ of such code, because it is based on reverse engineered knowledge with many many unknowns.
IMO this just creates additional maintenance work and pressure on our maintainers for no good reason.
Yeah, the cleanup patches are a problem. Even more so that there can be people who deliberately try to submit compromised code:
https://lore.kernel.org/lkml/202105051005.49BFABCE@keescook/
brtfs has a pretty good summary about their feelings towards cleanup patches:
https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start
Johannes and me have been talking that we should write something similar for wireless. Maybe we should start by adding that link to our documentation :)
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches