Commit 17bce37e authored by Tero Kristo's avatar Tero Kristo Committed by Herbert Xu
Browse files

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: 7694b6ca ("crypto: sa2ul - Add crypto driver")
Reported-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Reviewed-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c68e418c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1148,14 +1148,12 @@ 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;
		}
	}
	}

	if (unlikely(src_nents != sg_nents)) {
		dev_warn_ratelimited(sa_k3_dev, "failed to map tx pkt\n");