[PATCH] char: hw_random: bcm2835-rng: removed call to platform_set_drvdata()

Herbert Xu herbert at gondor.apana.org.au
Fri Sep 15 03:37:07 PDT 2023


On Wed, Aug 23, 2023 at 02:15:55PM +0300, Andrei Coardos wrote:
> This function call was found to be unnecessary as there is no equivalent
> platform_get_drvdata() call to access the private data of the driver. Also,
> the private data is defined in this driver, so there is no risk of it being
> accessed outside of this driver file.
> 
> Signed-off-by: Andrei Coardos <aboutphysycs at gmail.com>
> ---
>  drivers/char/hw_random/bcm2835-rng.c | 2 --
>  1 file changed, 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



More information about the linux-arm-kernel mailing list