From 5c88cbd1cf76020804e6dff87ec3c19b17fa4fa3 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Fri, 6 May 2011 22:15:29 +0200 Subject: [PATCH] carl9170 tools: fix error code propagation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit eeprom_fix.c: In function ‘get_addr’: eeprom_fix.c:44:6: warning: variable ‘err’ set but not us Signed-off-by: Christian Lamparter --- tools/src/eeprom_fix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/eeprom_fix.c b/tools/src/eeprom_fix.c index 263ffb1..088510e 100644 --- a/tools/src/eeprom_fix.c +++ b/tools/src/eeprom_fix.c @@ -51,7 +51,7 @@ static int get_addr(char *str, unsigned int *val) return -EINVAL; } - return 0; + return err; } static int -- 2.31.1