power: return error when environment already set
authorMarcin Hajkowski <marcinx.hajkowski@intel.com>
Fri, 5 Apr 2019 16:22:03 +0000 (18:22 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 20:44:55 +0000 (22:44 +0200)
commit5a5f3178d4a83338e518343ea4037f56b6065f1e
tree06153cf701e551b9ff9085e732b08101093ea57e
parent92433e347326c4d438c69093bbfa6212b8b59d60
power: return error when environment already set

On attempt to set_env in already initialized state notify
user by returning error that operation cannot be performed.

Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_power/rte_power.c
lib/librte_power/rte_power.h