carl9170 tools: fix error code propagation
[carl9170fw.git] / tools / src / eeprom_fix.c
index 1786b87a132e45ec7cd4993795d5a91dfe9fa4af..088510edcc87e60b6ac0dc318590a7ff48232def 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2010, Christian Lamparter <chunkeey@googlemail.com>
+ * Copyright 2010-2011 Christian Lamparter <chunkeey@googlemail.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -51,7 +51,7 @@ static int get_addr(char *str, unsigned int *val)
                return -EINVAL;
        }
 
-       return 0;
+       return err;
 }
 
 static int