aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-12-27 21:15:31 +0000
committerJohn Crispin <blogic@openwrt.org>2013-12-27 21:15:31 +0000
commit7a9cdb4a1f53f52bb407df1cc29bb126843aecf6 (patch)
tree6a9bdef9282ce8f659e07cde9f96d53fe6fbd7b4 /tools/firmware-utils
parentd7b08a20831f1e439bd560f8ba8b9da018466e80 (diff)
downloadupstream-7a9cdb4a1f53f52bb407df1cc29bb126843aecf6.tar.gz
upstream-7a9cdb4a1f53f52bb407df1cc29bb126843aecf6.tar.bz2
upstream-7a9cdb4a1f53f52bb407df1cc29bb126843aecf6.zip
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/firmware-utils')
-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;