From 515a07e51dbb6bc0d7a3bdb5ee8e687367127dad Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 20 Dec 2014 15:31:18 +0100 Subject: sb1: fix buggy comparison cppcheck reported: [rockbox/utils/imxtools/sbtools/sb1.c:440]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. Thanks to Thomas Jarosch Change-Id: I0078232706d4014a1f2acea310a7a0d0edf7788b --- utils/imxtools/sbtools/sb1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/imxtools') diff --git a/utils/imxtools/sbtools/sb1.c b/utils/imxtools/sbtools/sb1.c index 6bc4dd8cfa..f252ded2b8 100644 --- a/utils/imxtools/sbtools/sb1.c +++ b/utils/imxtools/sbtools/sb1.c @@ -437,7 +437,7 @@ struct sb1_file_t *sb1_read_memory(void *_buf, size_t filesize, void *u, for(int i = 0; i < g_nr_keys; i++) { - if(!g_key_array[i].method == CRYPTO_XOR_KEY) + if(g_key_array[i].method != CRYPTO_XOR_KEY) continue; /* copy key and data because it's modified by the crypto code */ memcpy(key, g_key_array[i].u.xor_key, sizeof(key)); -- cgit v1.2.3