[PATCH v1] parport_pc: Drop unused assignment of pnp_device_id driver data
From: Uwe Kleine-König (The Capable Hub)
Date: Wed Jun 10 2026 - 10:34:25 EST
The driver explicitly sets the .driver_data member of struct
pnp_device_id to zero without relying on that value. Drop this unused
assignment.
This patch doesn't modify the compiled array, tested on x86 and arm64.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
Hello,
I'm currently working on a 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.
So if you don't like this patch, I won't insist.
Best regards
Uwe
drivers/parport/parport_pc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index bccfe75fe6e5..7182f68e9228 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -3002,9 +3002,9 @@ static int __init parport_pc_init_superio(int autoirq, int autodma)
static const struct pnp_device_id parport_pc_pnp_tbl[] = {
/* Standard LPT Printer Port */
- {.id = "PNP0400", .driver_data = 0},
+ { .id = "PNP0400" },
/* ECP Printer Port */
- {.id = "PNP0401", .driver_data = 0},
+ { .id = "PNP0401" },
{ }
};
base-commit: 49e02880ec0a8c378e811bc9d85da188d7c6204c
--
2.47.3