aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-03-20 10:21:12 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-23 07:06:50 -0400
commit900831a4d9cf3d0280527f176fc20e8c0cdbb63a (patch)
tree84bbffbf5a811619c1154ae93bf2ca48718472f3 /drivers/crypto
parent665503049bada5198aa53b9d618069f0f8fe191f (diff)
crypto: img-hash - fix some compile warnings
GCC complains about that %u is the wrong format string for size_t and also that "ret" is unused. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/img-hash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/img-hash.c b/drivers/crypto/img-hash.c
index fec61fc09f08..601ab357f661 100644
--- a/drivers/crypto/img-hash.c
+++ b/drivers/crypto/img-hash.c
@@ -192,7 +192,7 @@ static int img_hash_xmit_cpu(struct img_hash_dev *hdev, const u8 *buf,
192 u32 count, len32; 192 u32 count, len32;
193 const u32 *buffer = (const u32 *)buf; 193 const u32 *buffer = (const u32 *)buf;
194 194
195 dev_dbg(hdev->dev, "xmit_cpu: length: %u bytes\n", length); 195 dev_dbg(hdev->dev, "xmit_cpu: length: %zu bytes\n", length);
196 196
197 if (final) 197 if (final)
198 hdev->flags |= DRIVER_FLAGS_FINAL; 198 hdev->flags |= DRIVER_FLAGS_FINAL;
@@ -459,7 +459,6 @@ static int img_hash_hw_init(struct img_hash_dev *hdev)
459{ 459{
460 unsigned long long nbits; 460 unsigned long long nbits;
461 u32 u, l; 461 u32 u, l;
462 int ret;
463 462
464 img_hash_write(hdev, CR_RESET, CR_RESET_SET); 463 img_hash_write(hdev, CR_RESET, CR_RESET_SET);
465 img_hash_write(hdev, CR_RESET, CR_RESET_UNSET); 464 img_hash_write(hdev, CR_RESET, CR_RESET_UNSET);