diff options
author | Tomas Marek <tomas.marek@elrest.cz> | 2022-11-08 07:42:40 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-11-18 09:59:34 +0100 |
commit | 7cdc5e6bcd02ab45d0a2991b35861b448e355276 (patch) | |
tree | ecd1b6fc1f9f99fccdfe815cdc32f3a4e587eef5 /drivers/char/hw_random/stm32-rng.c | |
parent | hwrng: core - treat default_quality as a maximum and default to 1024 (diff) | |
download | linux-7cdc5e6bcd02ab45d0a2991b35861b448e355276.tar.xz linux-7cdc5e6bcd02ab45d0a2991b35861b448e355276.zip |
hwrng: stm32 - rename readl return value
Use a more meaningful name for the readl return value variable.
Link: https://lore.kernel.org/all/Y1J3QwynPFIlfrIv@loth.rohan.me.apana.org.au/
Signed-off-by: Tomas Marek <tomas.marek@elrest.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/stm32-rng.c')
-rw-r--r-- | drivers/char/hw_random/stm32-rng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 366edda4848b..a6731cf0627a 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -49,13 +49,13 @@ static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) /* Manage timeout which is based on timer and take */ /* care of initial delay time when enabling rng */ if (!sr && wait) { - int ret; + int err; - ret = readl_relaxed_poll_timeout_atomic(priv->base + err = readl_relaxed_poll_timeout_atomic(priv->base + RNG_SR, sr, sr, 10, 50000); - if (ret) + if (err) dev_err((struct device *)priv->rng.priv, "%s: timeout %x!\n", __func__, sr); } |