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:
John Crispin 2013-12-27 21:15:31 +00:00
parent d1156bca0a
commit 3b4152bfda

View file

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