From: Christian Lamparter Date: Fri, 6 May 2011 20:15:29 +0000 (+0200) Subject: carl9170 tools: fix error code propagation X-Git-Tag: 1.9.4~17 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=5c88cbd1cf76020804e6dff87ec3c19b17fa4fa3 carl9170 tools: fix error code propagation eeprom_fix.c: In function ‘get_addr’: eeprom_fix.c:44:6: warning: variable ‘err’ set but not us Signed-off-by: Christian Lamparter --- 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