Commit c0e741d4 authored by Kim Phillips's avatar Kim Phillips Committed by Herbert Xu

crypto: talitos - sparse fix

Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fa86a267
...@@ -848,7 +848,7 @@ static int sg_to_link_tbl(struct scatterlist *sg, int sg_count, ...@@ -848,7 +848,7 @@ static int sg_to_link_tbl(struct scatterlist *sg, int sg_count,
/* adjust (decrease) last one (or two) entry's len to cryptlen */ /* adjust (decrease) last one (or two) entry's len to cryptlen */
link_tbl_ptr--; link_tbl_ptr--;
while (link_tbl_ptr->len <= (-cryptlen)) { while (be16_to_cpu(link_tbl_ptr->len) <= (-cryptlen)) {
/* Empty this entry, and move to previous one */ /* Empty this entry, and move to previous one */
cryptlen += be16_to_cpu(link_tbl_ptr->len); cryptlen += be16_to_cpu(link_tbl_ptr->len);
link_tbl_ptr->len = 0; link_tbl_ptr->len = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment