From 900831a4d9cf3d0280527f176fc20e8c0cdbb63a Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 20 Mar 2015 17:21:12 +0300 Subject: 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 Signed-off-by: Herbert Xu --- drivers/crypto/img-hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/crypto') 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, u32 count, len32; const u32 *buffer = (const u32 *)buf; - dev_dbg(hdev->dev, "xmit_cpu: length: %u bytes\n", length); + dev_dbg(hdev->dev, "xmit_cpu: length: %zu bytes\n", length); if (final) hdev->flags |= DRIVER_FLAGS_FINAL; @@ -459,7 +459,6 @@ static int img_hash_hw_init(struct img_hash_dev *hdev) { unsigned long long nbits; u32 u, l; - int ret; img_hash_write(hdev, CR_RESET, CR_RESET_SET); img_hash_write(hdev, CR_RESET, CR_RESET_UNSET); -- cgit v1.2.3