diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-12-20 15:31:18 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-12-20 15:31:18 +0100 |
commit | 515a07e51dbb6bc0d7a3bdb5ee8e687367127dad (patch) | |
tree | 4883f668d131983850f912dceb8800ee1d3d2b04 | |
parent | 61e322c840e9ca434b24dcd27b5d576a4bf03a40 (diff) | |
download | rockbox-515a07e51dbb6bc0d7a3bdb5ee8e687367127dad.tar.gz 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
-rw-r--r-- | utils/imxtools/sbtools/sb1.c | 2 |
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, | |||
437 | 437 | ||
438 | for(int i = 0; i < g_nr_keys; i++) | 438 | for(int i = 0; i < g_nr_keys; i++) |
439 | { | 439 | { |
440 | if(!g_key_array[i].method == CRYPTO_XOR_KEY) | 440 | if(g_key_array[i].method != CRYPTO_XOR_KEY) |
441 | continue; | 441 | continue; |
442 | /* copy key and data because it's modified by the crypto code */ | 442 | /* copy key and data because it's modified by the crypto code */ |
443 | memcpy(key, g_key_array[i].u.xor_key, sizeof(key)); | 443 | memcpy(key, g_key_array[i].u.xor_key, sizeof(key)); |