* fix return codes of nvram_getenv. Now it behaves like cfe_getenv. * also check cfe for kernel_args param. * some style fixes SVN-Revision: 22424master
parent
927d42ed62
commit
96911f6b58
@ -0,0 +1,33 @@ |
||||
From c5cb2459ff124c1a928e2056bc1fe2da7b6ab6ba Mon Sep 17 00:00:00 2001
|
||||
From: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
Date: Fri, 30 Jul 2010 17:45:20 +0200
|
||||
Subject: [PATCH 5/6] MIPS: BCM47xx: nvram_getenv fix return value.
|
||||
|
||||
nvram_getenv should behave like cfe_getenv. For now it is used like
|
||||
cfe_getenv. cfe_getenv returns 0 on success and -1 in case of an error.
|
||||
Change nvram_getenv to do the same.
|
||||
|
||||
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
---
|
||||
arch/mips/bcm47xx/nvram.c | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm47xx/nvram.c
|
||||
+++ b/arch/mips/bcm47xx/nvram.c
|
||||
@@ -69,7 +69,7 @@ int nvram_getenv(char *name, char *val,
|
||||
char *var, *value, *end, *eq;
|
||||
|
||||
if (!name)
|
||||
- return 1;
|
||||
+ return -8;
|
||||
|
||||
if (!nvram_buf[0])
|
||||
early_nvram_init();
|
||||
@@ -89,6 +89,6 @@ int nvram_getenv(char *name, char *val,
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
- return 1;
|
||||
+ return -9;
|
||||
}
|
||||
EXPORT_SYMBOL(nvram_getenv);
|
@ -0,0 +1,33 @@ |
||||
From c5cb2459ff124c1a928e2056bc1fe2da7b6ab6ba Mon Sep 17 00:00:00 2001
|
||||
From: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
Date: Fri, 30 Jul 2010 17:45:20 +0200
|
||||
Subject: [PATCH 5/6] MIPS: BCM47xx: nvram_getenv fix return value.
|
||||
|
||||
nvram_getenv should behave like cfe_getenv. For now it is used like
|
||||
cfe_getenv. cfe_getenv returns 0 on success and -1 in case of an error.
|
||||
Change nvram_getenv to do the same.
|
||||
|
||||
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
---
|
||||
arch/mips/bcm47xx/nvram.c | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/arch/mips/bcm47xx/nvram.c
|
||||
+++ b/arch/mips/bcm47xx/nvram.c
|
||||
@@ -69,7 +69,7 @@ int nvram_getenv(char *name, char *val,
|
||||
char *var, *value, *end, *eq;
|
||||
|
||||
if (!name)
|
||||
- return 1;
|
||||
+ return -8;
|
||||
|
||||
if (!nvram_buf[0])
|
||||
early_nvram_init();
|
||||
@@ -89,6 +89,6 @@ int nvram_getenv(char *name, char *val,
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
- return 1;
|
||||
+ return -9;
|
||||
}
|
||||
EXPORT_SYMBOL(nvram_getenv);
|
Loading…
Reference in new issue