crypto: octeontx2 - uninitialized variable in kvf_limits_store()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Nov 2021 14:10:27 +0000 (17:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:30 +0000 (11:05 +0100)
commitcb697a36f41550f4401e3a575684e205fa94169f
treecd73b03e2a8ce6652383bb98dfd106051cf1f454
parent2d7d3b6da85e219abed247a63a4754f04376e2fa
crypto: octeontx2 - uninitialized variable in kvf_limits_store()

commit 0ea275df84c389e910a3575a9233075118c173ee upstream.

If kstrtoint() fails then "lfs_num" is uninitialized and the warning
doesn't make any sense.  Just delete it.

Fixes: 8ec8015a3168 ("crypto: octeontx2 - add support to process the crypto request")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c