summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-27 21:15:31 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-27 21:15:31 +0000
commit20a9f1b95a6731597042fc1ae544d50ae0d56e78 (patch)
tree6a9bdef9282ce8f659e07cde9f96d53fe6fbd7b4 /tools
parentcbc47093afc4327e57c5d54202711b42a2ba4413 (diff)
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-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/buffalo-lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/firmware-utils/src/buffalo-lib.c b/tools/firmware-utils/src/buffalo-lib.c
index 29aee9f88d..add3a7e023 100644
--- a/tools/firmware-utils/src/buffalo-lib.c
+++ b/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;