Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sl3516 - remove redundant initializations of pointers in_sg and out_sg

Pointers in_sg and out_sg are being initialized with values that are
never read, they are being re-assigned the same values later on. The
initializations are redundant, remove them in preference to the later
assignments that are closer to when the pointers are being used.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Colin Ian King and committed by
Herbert Xu
95e26b03 c717993d

+2 -2
+2 -2
drivers/crypto/gemini/sl3516-ce-cipher.c
··· 23 23 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); 24 24 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm); 25 25 struct sl3516_ce_dev *ce = op->ce; 26 - struct scatterlist *in_sg = areq->src; 27 - struct scatterlist *out_sg = areq->dst; 26 + struct scatterlist *in_sg; 27 + struct scatterlist *out_sg; 28 28 struct scatterlist *sg; 29 29 30 30 if (areq->cryptlen == 0 || areq->cryptlen % 16) {