]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwrng: drivers - Drop unused assignment to pci driver_data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Mon, 4 May 2026 09:20:14 +0000 (11:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:36 +0000 (18:08 +0800)
commit69f93dbb40377edc4c4bf3fc67bbd63ba35fde3d
treec79b7b2e14a13631530544bdf18acd0b73efc684
parent69e7b807ba7464fe9fd46bc72562cdeabe9a374c
hwrng: drivers - Drop unused assignment to pci driver_data

Explicitly assigning 0 to driver_data in drivers not using this member
has no benefit. Drop these and similarly depend on the compiler to
zero-initialize the list terminator.

This is a preparation for making struct pci_device_id::driver_data an
anonymous union (which makes initializing using a list expression fail),
but it's also a nice cleanup by itself.

It was verified on x86 and arm64 that this change doesn't introduce
changes to the compiled drivers.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/amd-rng.c
drivers/char/hw_random/cavium-rng.c
drivers/char/hw_random/geode-rng.c