You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
367 B
12 lines
367 B
--- 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;
|
|
|