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 11:02:56 +0000 (12:02 +0100)
commit76a01740ada1ed9149e4a6a9d2f3aa4409ca0d66
treeb3b6edebd33d0d87ce51270cbeee5d8dd8290b7f
parentefc0f3f844503d2fd478272039d5f8539a533c09
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