Nicholas Faustini d30ba2315a u-boot: remove driver lookup loop from env_save()
When called with ENVOP_SAVE, env_get_location() only returns the
gd->env_load_location variable without actually checking for
the environment location and priority.

This behaviour causes env_save() to fall into an infinite loop when
the low-level drv->save() call fails.

The env_save() function should not loop through the environment
location list but it should save the environment into the location
stored in gd->env_load_location by the last env_load() call.

Signed-off-by: Nicholas Faustini <nicholas.faustini@azcomtech.com>
Reviewed-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
2018-07-30 07:18:47 -04:00
..
2018-07-19 16:31:37 -04:00
2018-07-19 16:17:58 -04:00
2018-06-18 14:43:13 -04:00
2018-02-05 20:58:11 -05:00
2018-06-24 08:56:04 +08:00
2018-07-26 14:08:22 -05:00
2018-06-13 07:49:12 -04:00
2018-04-06 17:04:33 -04:00
2018-07-26 14:08:20 -05:00
2018-05-23 17:30:03 -04:00
2018-06-03 15:27:21 +02:00
2018-05-26 12:46:50 -04:00
2018-07-26 14:08:22 -05:00
2018-05-26 18:19:17 -04:00
2018-07-19 16:31:37 -04:00
2018-07-20 15:55:05 -04:00