9
0
Fork 0

nv: Allow full variable name in nvvar_add

As a convenience for users allow to pass the full name, including
the leading "nv.", to nvvar_add().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2016-09-12 15:47:38 +02:00
parent d3e108645b
commit f5bf5b9c5a
1 changed files with 3 additions and 0 deletions

View File

@ -240,6 +240,9 @@ int nvvar_add(const char *name, const char *value)
{
int ret;
if (!strncmp(name, "nv.", 3))
name += 3;
ret = __nvvar_add(name, value);
if (ret)
return ret;