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