mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-19 22:11:09 +03:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32845 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
367 B
Diff
13 lines
367 B
Diff
--- a/arch/mips/bcm47xx/nvram.c
|
|
+++ b/arch/mips/bcm47xx/nvram.c
|
|
@@ -107,8 +107,7 @@ int nvram_getenv(char *name, char *val,
|
|
value = eq + 1;
|
|
if ((eq - var) == strlen(name) &&
|
|
strncmp(var, name, (eq - var)) == 0) {
|
|
- snprintf(val, val_len, "%s", value);
|
|
- return 0;
|
|
+ return snprintf(val, val_len, "%s", value);
|
|
}
|
|
}
|
|
return NVRAM_ERR_ENVNOTFOUND;
|