firmware-utils: check_magic() in buffalo-lib.c always return 0
spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 39171
This commit is contained in:
parent
d1156bca0a
commit
3b4152bfda
@ -249,10 +249,10 @@ static uint32_t get_be32(void *data)
|
||||
|
||||
static int check_magic(void *magic)
|
||||
{
|
||||
if (!memcmp("start", magic, ENC_MAGIC_LEN));
|
||||
if (!memcmp("start", magic, ENC_MAGIC_LEN))
|
||||
return 0;
|
||||
|
||||
if (!memcmp("asar1", magic, ENC_MAGIC_LEN));
|
||||
if (!memcmp("asar1", magic, ENC_MAGIC_LEN))
|
||||
return 0;
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user