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
This commit is contained in:
Amaury Pouly 2014-12-20 15:31:18 +01:00
parent 61e322c840
commit 515a07e51d

View file

@ -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));