hwrng: bcm2835 - remove redundant null check
authorTian Tao <tiantao6@hisilicon.com>
Wed, 10 Feb 2021 01:14:58 +0000 (09:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:14 +0000 (15:13 +1100)
commite06da499d69a0b34d5824c5fde38f1f7e1eb9833
tree9cc49c8fbf9ab0999bdcaeceafaa0d7dafa4b136
parentf17a25cb1776c5712e950aaf326528ae652a086c
hwrng: bcm2835 - remove redundant null check

clk_prepare_enable() and clk_disable_unprepare() will check
NULL clock parameter, so It is not necessary to add additional checks.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/bcm2835-rng.c