]> git.dujemihanovic.xyz Git - u-boot.git/commit
doc: Fix eth_env_[gs]et_enetaddr() return value
authorMarek Vasut <marex@denx.de>
Sun, 18 Dec 2022 07:05:02 +0000 (08:05 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 12:17:42 +0000 (13:17 +0100)
commitfbc595b4124de3d51cb00fe541b93a3d979a58ec
tree167c611a00bea7957fbdcd787a901675bb7901ea
parent566b7b2f518797540413bf55862b6562158aced9
doc: Fix eth_env_[gs]et_enetaddr() return value

Per env/common.c, eth_env_get_enetaddr() returns the same return
values as is_valid_ethaddr(), i.e. true if valid, false otherwise.
Per env/common.c, eth_env_set_enetaddr() may return -EEXIST is the
ethaddr is already set. Fix both.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/env.h