linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: fix comparison of unsigned expression warnings
@ 2019-09-30  8:49 Tian Tao
  2019-09-30 14:17 ` Jonathan Cameron
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tian Tao @ 2019-09-30  8:49 UTC (permalink / raw)
  To: gilad, herbert, davem, linux-crypto; +Cc: linuxarm

This patch fixes the following warnings:
drivers/crypto/ccree/cc_aead.c:630:5-12: WARNING: Unsigned expression
compared with zero: seq_len > 0

Signed-off-by: Tian Tao <tiantao6@huawei.com>
---
 drivers/crypto/ccree/cc_aead.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccree/cc_aead.c b/drivers/crypto/ccree/cc_aead.c
index d3e8faa..b19291d 100644
--- a/drivers/crypto/ccree/cc_aead.c
+++ b/drivers/crypto/ccree/cc_aead.c
@@ -546,7 +546,7 @@ static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key,
 	struct cc_aead_ctx *ctx = crypto_aead_ctx(tfm);
 	struct cc_crypto_req cc_req = {};
 	struct cc_hw_desc desc[MAX_AEAD_SETKEY_SEQ];
-	unsigned int seq_len = 0;
+	int seq_len = 0;
 	struct device *dev = drvdata_to_dev(ctx->drvdata);
 	const u8 *enckey, *authkey;
 	int rc;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-17 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30  8:49 [PATCH] crypto: fix comparison of unsigned expression warnings Tian Tao
2019-09-30 14:17 ` Jonathan Cameron
2019-09-30 14:44   ` Jonathan Cameron
2019-10-02 10:00 ` Gilad Ben-Yossef
2019-10-08  1:00   ` 答复: " tiantao (H)
2019-10-17 13:45 ` Gilad Ben-Yossef

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).