diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-16 00:03:58 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-04-24 17:42:16 +1000 |
commit | fe29f33e663071f63f66d66e138eb2301fe32c17 (patch) | |
tree | 78399e8756eb7f49ec69ef9319715b58c0a4a6bf /crypto | |
parent | 086ccda8f29040866eb21efc9056e401fd0cccf8 (diff) | |
download | linux-crypto-fe29f33e663071f63f66d66e138eb2301fe32c17.tar.gz linux-crypto-fe29f33e663071f63f66d66e138eb2301fe32c17.zip |
crypto: algif_rng - remove redundant assignment to variable err
The variable err is being initialized with a value that is never read
and it is being updated later with a new value. The initialization is
redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/algif_rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_rng.c b/crypto/algif_rng.c index 22df3799..087c0ad0 100644 --- a/crypto/algif_rng.c +++ b/crypto/algif_rng.c @@ -61,7 +61,7 @@ static int rng_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, struct sock *sk = sock->sk; struct alg_sock *ask = alg_sk(sk); struct rng_ctx *ctx = ask->private; - int err = -EFAULT; + int err; int genlen = 0; u8 result[MAXSIZE]; |