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-13 16:03:43 +0200
commit1069a2288601d0324c6d707944c11af87a457ea2 (patch)
tree3a6f988e11d2fb4f4be3398efbb04275501a3261
parent2974d53a3b3a2f56d96c56acf26501735a4e41cd (diff)
downloadbarebox-1069a2288601d0324c6d707944c11af87a457ea2.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 c528b24..c48e7df 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;
}