OSDN Git Service

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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Dec 2021 04:56:43 +0000 (15:56 +1100)
commit0ea275df84c389e910a3575a9233075118c173ee
treea3307b554f7d6da7e0050df40c630af2596d3d1e
parent5876b0cb883da7a16129dadc06250a36a79a8ee1
crypto: octeontx2 - uninitialized variable in kvf_limits_store()

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>
drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c