summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-06-13 16:03:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-06-14 09:31:38 +0200
commit84c27193158d79c53b4b378c3fb571554afd7e0c (patch)
tree89becf53a1599f7f186f37c7103f82599b340c36
parent87b87ba3f416576a371c4e6fe52dc94bd93076e1 (diff)
downloadbarebox-84c27193158d79c53b4b378c3fb571554afd7e0c.tar.gz
Revert "globalvar: Fix value of new globalvar when nvvar exists"
This reverts commit f8a177478c1b79e369ecc65501d9d15ff573339f.
-rw-r--r--common/globalvar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/globalvar.c b/common/globalvar.c
index dce1402..71daff7 100644
--- a/common/globalvar.c
+++ b/common/globalvar.c
@@ -403,11 +403,11 @@ int globalvar_add_simple(const char *name, const char *value)
return PTR_ERR(param);
}
- globalvar_nv_sync(name);
-
if (value)
dev_set_param(&global_device, name, value);
+ globalvar_nv_sync(name);
+
return 0;
}