commit | 47a348614492987ef307aad299c09163344e4eaf | [log] [tgz] |
---|---|---|
author | Hauke Mehrtens <hauke@hauke-m.de> | Mon Aug 02 23:56:22 2010 +0200 |
committer | Ralf Baechle <ralf@linux-mips.org> | Thu Aug 05 13:26:31 2010 +0100 |
tree | f7aa65b0c9fde6cba390a1a38acdeaba2f91556e | |
parent | 2b5987abaf2dd6c3934e0376b7d9f64411cdcf03 [diff] |
MIPS: BCM47xx: Fix nvram_getenv return value. Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on success and -9 if the value was not found. If the input was wrong -8 will be returned by cfe_getenv. Change nvram_getenv to do the same. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Cc: Waldemar Brodkorb <wbx@openadk.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1520/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>