]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ethernet: 3c509: Improve style of pnp_device_id array terminator
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 10 Jun 2026 09:46:53 +0000 (11:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jun 2026 21:59:06 +0000 (14:59 -0700)
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@baylibre.com>
Link: https://patch.msgid.link/a0cd057e6a24b9d355b5e4bdfcdb812cdd1e4652.1781082923.git.u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/3com/3c509.c

index f23be7425daf2d4400859993b3bd6c94772dcbbb..3438168befa6028c086b1fb6dfdd4b05e4514c33 100644 (file)
@@ -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);