nv: Fix variable removal in nvvar_save()
When nv variables are removed during runtime then they are
present again when saved with nvvar_save(). This is because nvvar_save()
does not delete variables that exist on the saved environment. Delete
/nv on the saved environment before saving the new variables.

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