firmware-utils: check_magic() in buffalo-lib.c always return 0
spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39171 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
d7b08a2083
commit
7a9cdb4a1f
|
@ -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