summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-12-20 15:31:18 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-12-20 15:31:18 +0100
commit515a07e51dbb6bc0d7a3bdb5ee8e687367127dad (patch)
tree4883f668d131983850f912dceb8800ee1d3d2b04 /utils
parent61e322c840e9ca434b24dcd27b5d576a4bf03a40 (diff)
downloadrockbox-515a07e51dbb6bc0d7a3bdb5ee8e687367127dad.tar.gz
rockbox-515a07e51dbb6bc0d7a3bdb5ee8e687367127dad.tar.bz2
rockbox-515a07e51dbb6bc0d7a3bdb5ee8e687367127dad.zip
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
Diffstat (limited to 'utils')
-rw-r--r--utils/imxtools/sbtools/sb1.c2
1 files changed, 1 insertions, 1 deletions
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));