diff options
author | Tero Kristo <t-kristo@ti.com> | 2020-08-25 15:31:06 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-09-11 06:39:13 +0200 |
commit | 17bce37e1b5eca95f9da783a07930b6d608c1389 (patch) | |
tree | 2fcb1b924bcc3de2d99ef57e5317f0ee7c8e352e /drivers/crypto/sa2ul.c | |
parent | crypto: amlogic - Fix endianness marker (diff) | |
download | linux-17bce37e1b5eca95f9da783a07930b6d608c1389.tar.xz linux-17bce37e1b5eca95f9da783a07930b6d608c1389.zip |
crypto: sa2ul - fix compiler warning produced by clang
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>
Diffstat (limited to 'drivers/crypto/sa2ul.c')
-rw-r--r-- | drivers/crypto/sa2ul.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index b685a76ae88c..934e9a00638c 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; - } } } |