diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2021-05-20 09:56:11 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-05-28 09:11:44 +0200 |
commit | cb028f1662a9910d4b8e3fbe9eb38f7a545540a3 (patch) | |
tree | a5480997bccfb081eac6d8f1884e9e741d87b978 /drivers/char | |
parent | crypto: qce - Fix some error handling path (diff) | |
download | linux-cb028f1662a9910d4b8e3fbe9eb38f7a545540a3.tar.xz linux-cb028f1662a9910d4b8e3fbe9eb38f7a545540a3.zip |
hwrng: core - remove redundant initialization of variable err
'err' will be assigned later and cleanup the redundant initialization.
Cc: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hw_random/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index adb3c2bd7783..322e3d0ea98c 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -323,7 +323,7 @@ static ssize_t hwrng_attr_current_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) { - int err = -ENODEV; + int err; struct hwrng *rng, *old_rng, *new_rng; err = mutex_lock_interruptible(&rng_mutex); |