diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2008-07-17 08:20:59 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-17 08:20:59 -0400 |
commit | c0e741d47859fcabb84a37589a4f49801ca8590a (patch) | |
tree | 3baf5e9eacb46fb8895fe7b0d74dca822b0d428f | |
parent | fa86a26795b850cdf4e557898457a63e241c1aa1 (diff) |
crypto: talitos - sparse fix
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/talitos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index a81265bbb897..681c15f42083 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -848,7 +848,7 @@ static int sg_to_link_tbl(struct scatterlist *sg, int sg_count, | |||
848 | 848 | ||
849 | /* adjust (decrease) last one (or two) entry's len to cryptlen */ | 849 | /* adjust (decrease) last one (or two) entry's len to cryptlen */ |
850 | link_tbl_ptr--; | 850 | link_tbl_ptr--; |
851 | while (link_tbl_ptr->len <= (-cryptlen)) { | 851 | while (be16_to_cpu(link_tbl_ptr->len) <= (-cryptlen)) { |
852 | /* Empty this entry, and move to previous one */ | 852 | /* Empty this entry, and move to previous one */ |
853 | cryptlen += be16_to_cpu(link_tbl_ptr->len); | 853 | cryptlen += be16_to_cpu(link_tbl_ptr->len); |
854 | link_tbl_ptr->len = 0; | 854 | link_tbl_ptr->len = 0; |