ethernet: 3c509: Improve style of pnp_device_id array terminator
Subsystems (3)
PATCH 1/1 ethernet: 3c509: Improve style of pnp_device_id array terminator
To match how device-id array terminators look like for other device types drop .id = "" from it and let the compiler care for zeroing the entry.
There are no changes in the compiled drivers, only the source looks nicer.
---
Hello,
I'm currently working on changing various *_device_id definitions. This patch is irrelevant for this quest and a pure style update for consistency reasons without further dependencies on it. I just stumbled over this while working on that quest.
So if you don't like this patch, I won't insist.
Best regards
Uwe
drivers/net/ethernet/3com/3c509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/3com/3c509.c +1 -1
@@ -438,7 +438,7 @@ static const struct pnp_device_id el3_pnp_ids[] = { { .id = "TCM5098" }, /* 3Com Etherlink III (TPC) */ { .id = "PNP80f7" }, /* 3Com Etherlink III compatible */ { .id = "PNP80f8" }, /* 3Com Etherlink III compatible */ - { .id = "" } + { } };MODULE_DEVICE_TABLE (pnp, el3_pnp_ids);
base-commit: 49e02880ec0a8c378e811bc9d85da188d7c6204c
Signature · 1 line
2.47.3
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 10 Jun 2026 11:46:53 +0200 you wrote:
To match how device-id array terminators look like for other device types drop
.id = ""from it and let the compiler care for zeroing the entry.There are no changes in the compiled drivers, only the source looks nicer.
[...]
Here is the summary with links:
- [net-next,v1] ethernet: 3c509: Improve style of pnp_device_id array terminator
https://git.kernel.org/netdev/net-next/c/43746895a5a9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 11 lines · Uwe Kleine-König (The Capable Hub)
To match how device-id array terminators look like for other device types drop
.id = ""from it and let the compiler care for zeroing the entry.There are no changes in the compiled drivers, only the source looks nicer.
Signed-off-by Uwe Kleine-König (The Capable Hub) <[email protected]>---
Hello,
Quoted 6 lines
I'm currently working on changing various
*_device_iddefinitions. This patch is irrelevant for this quest and a pure style update for consistency reasons without further dependencies on it. I just stumbled over this while working on that quest.So if you don't like this patch, I won't insist.
Absolutely fine with me, though I can see it's been taken already in my
absence. So for the record only:
Thanks,
Maciej