提交 17bce37e 编写于 作者: T Tero Kristo 提交者: Herbert Xu

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: NNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: NTero Kristo <t-kristo@ti.com>
Reviewed-by: NNathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 c68e418c
......@@ -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;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册