]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6f55f03075e21f29756402610d193e78a930baf
treea3307b554f7d6da7e0050df40c630af2596d3d1e
parentc1a25403487fc1f26ed477260dde5f5270ac1b88
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: 82affa3efb2c ("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