]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwrng: rockchip - eliminate some unnecessary dereferences
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tue, 4 Feb 2025 15:35:49 +0000 (16:35 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 07:56:02 +0000 (15:56 +0800)
commit24aaa42ed65c0811b598674a593fc653d643a7e6
tree234021b1f926a634d86dd768c324474dbcade66d
parent8bb8609293ff3d8998d75c8db605c0529e83bcd9
hwrng: rockchip - eliminate some unnecessary dereferences

Despite assigning a temporary variable the value of &pdev->dev early on
in the probe function, the probe function then continues to use this
construct when it could just use the local dev variable instead.

Simplify this by using the local dev variable directly.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/rockchip-rng.c