Rather than updating the global, update the value of some parameters, so the action of the function is simpler. Signed-off-by: Simon Glass <sjg at chromium.org> --- (no changes since v1) cmd/net.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Applied to sjg/master, thanks!