Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204608
b: refs/heads/master
c: 47a3486
h: refs/heads/master
v: v3
  • Loading branch information
Hauke Mehrtens authored and Ralf Baechle committed Aug 5, 2010
1 parent 8e65657 commit 313d04d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b5987abaf2dd6c3934e0376b7d9f64411cdcf03
refs/heads/master: 47a348614492987ef307aad299c09163344e4eaf
4 changes: 2 additions & 2 deletions trunk/arch/mips/bcm47xx/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int nvram_getenv(char *name, char *val, size_t val_len)
char *var, *value, *end, *eq;

if (!name)
return 1;
return NVRAM_ERR_INV_PARAM;

if (!nvram_buf[0])
early_nvram_init();
Expand All @@ -89,6 +89,6 @@ int nvram_getenv(char *name, char *val, size_t val_len)
return 0;
}
}
return 1;
return NVRAM_ERR_ENVNOTFOUND;
}
EXPORT_SYMBOL(nvram_getenv);
3 changes: 3 additions & 0 deletions trunk/arch/mips/include/asm/mach-bcm47xx/nvram.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ struct nvram_header {
#define NVRAM_MAX_VALUE_LEN 255
#define NVRAM_MAX_PARAM_LEN 64

#define NVRAM_ERR_INV_PARAM -8
#define NVRAM_ERR_ENVNOTFOUND -9

extern int nvram_getenv(char *name, char *val, size_t val_len);

#endif

0 comments on commit 313d04d

Please sign in to comment.