nv: simplify nvvar_add
We do not need to have an extra code path when the variable already
exists, instead setting an existing variable can be done in the
variable creation code path aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 62ae027 commit ffc60313136432113be8d5865ac75cba1d9e6d16
@Sascha Hauer Sascha Hauer authored on 20 Sep 2016
Showing 1 changed file
View
common/globalvar.c