summaryrefslogtreecommitdiff
path: root/drivers/ata
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-09 18:51:13 +0200
committerNiklas Cassel <cassel@kernel.org>2026-06-10 09:41:26 +0200
commit0a77385b1080a0715f79f2ba7758b59d81ed2e97 (patch)
tree0e41ca8d82aae4461b315916abcb7bb9675aee40 /drivers/ata
parent590da526959499e58671f65655825d8a1973ff27 (diff)
downloadlinux-next-0a77385b1080a0715f79f2ba7758b59d81ed2e97.tar.gz
linux-next-0a77385b1080a0715f79f2ba7758b59d81ed2e97.zip
ata: pata_isapnp: Drop unused assignments from pnp_device_id array
Explicitly assigning .driver_data in drivers that don't use this member is silly and a bit irritating. Drop it. Also simplify the list terminator entry to be just empty to match what most other device_id tables do. There is no changed semantic, not even a change in the compiled result. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_isapnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_isapnp.c b/drivers/ata/pata_isapnp.c
index 0f77e0424066..23139009c40e 100644
--- a/drivers/ata/pata_isapnp.c
+++ b/drivers/ata/pata_isapnp.c
@@ -119,8 +119,8 @@ static void isapnp_remove_one(struct pnp_dev *idev)
static struct pnp_device_id isapnp_devices[] = {
/* Generic ESDI/IDE/ATA compatible hard disk controller */
- {.id = "PNP0600", .driver_data = 0},
- {.id = ""}
+ { .id = "PNP0600" },
+ { }
};
MODULE_DEVICE_TABLE(pnp, isapnp_devices);