[PATCH net-next v1] ethernet: 3c509: Improve style of pnp_device_id array terminator

From: Uwe Kleine-König (The Capable Hub)

Date: Wed Jun 10 2026 - 05:50:24 EST


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) <u.kleine-koenig@xxxxxxxxxxxx>
---
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(-)

diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c
index f23be7425daf..3438168befa6 100644
--- a/drivers/net/ethernet/3com/3c509.c
+++ b/drivers/net/ethernet/3com/3c509.c
@@ -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
--
2.47.3