1 From c5cb2459ff124c1a928e2056bc1fe2da7b6ab6ba Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 30 Jul 2010 17:45:20 +0200
4 Subject: [PATCH 5/6] MIPS: BCM47xx: nvram_getenv fix return value.
6 nvram_getenv should behave like cfe_getenv. For now it is used like
7 cfe_getenv. cfe_getenv returns 0 on success and -1 in case of an error.
8 Change nvram_getenv to do the same.
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 arch/mips/bcm47xx/nvram.c | 4 ++--
13 1 files changed, 2 insertions(+), 2 deletions(-)
15 --- a/arch/mips/bcm47xx/nvram.c
16 +++ b/arch/mips/bcm47xx/nvram.c
17 @@ -69,7 +69,7 @@ int nvram_getenv(char *name, char *val,
18 char *var, *value, *end, *eq;
26 @@ -89,6 +89,6 @@ int nvram_getenv(char *name, char *val,
33 EXPORT_SYMBOL(nvram_getenv);