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
master
John Crispin 11 years ago
parent d1156bca0a
commit 3b4152bfda
  1. 4
      tools/firmware-utils/src/buffalo-lib.c

@ -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…
Cancel
Save