From 3f218330d24da8016975443eb6457ab6b7ba367e Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 27 Dec 2013 21:15:31 +0000 Subject: [PATCH] firmware-utils: check_magic() in buffalo-lib.c always return 0 spotted with cppcheck Signed-off-by: Etienne CHAMPETIER SVN-Revision: 39171 --- src/buffalo-lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffalo-lib.c b/src/buffalo-lib.c index 29aee9f..add3a7e 100644 --- a/src/buffalo-lib.c +++ b/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; -- 2.30.2