mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-01 00:19:12 +04:00
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:
1 parent
d1156bca0a
commit
3b4152bfda
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user