summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2020-08-25 16:31:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 10:11:06 +0100
commit575a1cc649e7bbded3ec90c9d131df7b4f10c290 (patch)
treef05e969cf8717c6b1c144675fcfac2c41ea6096a /drivers/crypto
parente7e9e54d50d2baaa2c9ccc6c5b5693322556a5f7 (diff)
downloadlinux-stable-575a1cc649e7bbded3ec90c9d131df7b4f10c290.tar.gz
linux-stable-575a1cc649e7bbded3ec90c9d131df7b4f10c290.tar.bz2
linux-stable-575a1cc649e7bbded3ec90c9d131df7b4f10c290.zip
crypto: sa2ul - fix compiler warning produced by clang
[ Upstream commit 17bce37e1b5eca95f9da783a07930b6d608c1389 ] Clang detects a warning for an assignment that doesn't really do anything. Fix this by removing the offending piece of code. Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") Reported-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Tero Kristo <t-kristo@ti.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/sa2ul.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 5bc099052bd2..ff8bbdb4d235 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -1148,12 +1148,10 @@ static int sa_run(struct sa_req *req)
ret = sg_split(req->dst, mapped_dst_nents, 0, 1,
&split_size, &dst, &dst_nents,
gfp_flags);
- if (ret) {
- dst_nents = dst_nents;
+ if (ret)
dst = req->dst;
- } else {
+ else
rxd->split_dst_sg = dst;
- }
}
}