carl9170 tools: fix error code propagation
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 6 May 2011 20:15:29 +0000 (22:15 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 6 May 2011 20:15:29 +0000 (22:15 +0200)
eeprom_fix.c: In function ‘get_addr’:
eeprom_fix.c:44:6: warning: variable ‘err’ set but not us

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
tools/src/eeprom_fix.c

index 263ffb1f37b3a93e616237b8f8fb5055c9b13d52..088510edcc87e60b6ac0dc318590a7ff48232def 100644 (file)
@@ -51,7 +51,7 @@ static int get_addr(char *str, unsigned int *val)
                return -EINVAL;
        }
 
-       return 0;
+       return err;
 }
 
 static int