Skip to content

Commit 64e3357

Browse files
ukleinekaxboe
authored andcommitted
floppy: Drop unused pnp driver data
The pnp_device_id array is only used for module data to support auto-loading the floppy module. So the .driver_data member is unused and this assignment can be dropped. While touching that array, align the coding style to what is used most for these. This patch doesn't modify the compiled array, only its representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Denis Efremov (Oracle) <efremov@linux.com> Link: https://patch.msgid.link/99dbf851ffb99229ea1dcfd8f58e9ee6a1f05349.1781075967.git.u.kleine-koenig@baylibre.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5bdb8ec commit 64e3357

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/block/floppy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5012,8 +5012,8 @@ MODULE_LICENSE("GPL");
50125012

50135013
/* This doesn't actually get used other than for module information */
50145014
static const struct pnp_device_id floppy_pnpids[] = {
5015-
{"PNP0700", 0},
5016-
{}
5015+
{ .id = "PNP0700" },
5016+
{ }
50175017
};
50185018

50195019
MODULE_DEVICE_TABLE(pnp, floppy_pnpids);

0 commit comments

Comments
 (0)