diff options
author | Hauke Mehrtens | 2012-12-26 20:51:09 +0100 |
---|---|---|
committer | John Crispin | 2013-02-15 19:01:56 +0100 |
commit | ee7e2f3c235f43d815c0be285101b5b91a3bcaa5 (patch) | |
tree | 6ffcb4e4e9ba2c48c57f6a76f840a2403fb9f2ea /arch/mips/bcm47xx/sprom.c | |
parent | MIPS: bcm47xx: separate functions finding flash window addr (diff) | |
download | kernel-qcow2-linux-ee7e2f3c235f43d815c0be285101b5b91a3bcaa5.tar.gz kernel-qcow2-linux-ee7e2f3c235f43d815c0be285101b5b91a3bcaa5.tar.xz kernel-qcow2-linux-ee7e2f3c235f43d815c0be285101b5b91a3bcaa5.zip |
MIPS: BCM47XX: use common error codes in nvram reads
Instead of using our own error codes use some common codes.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4739/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/bcm47xx/sprom.c')
-rw-r--r-- | arch/mips/bcm47xx/sprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c index 289cc0a38638..66b71c363300 100644 --- a/arch/mips/bcm47xx/sprom.c +++ b/arch/mips/bcm47xx/sprom.c @@ -51,7 +51,7 @@ static int get_nvram_var(const char *prefix, const char *postfix, create_key(prefix, postfix, name, key, sizeof(key)); err = nvram_getenv(key, buf, len); - if (fallback && err == NVRAM_ERR_ENVNOTFOUND && prefix) { + if (fallback && err == -ENOENT && prefix) { create_key(NULL, postfix, name, key, sizeof(key)); err = nvram_getenv(key, buf, len); } |