mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 12:01:31 +00:00
arm: stm32mp: cleanup test on eth_env_set_enetaddr result
Remove the unnecessary inversion on the eth_env_set_enetaddr() result which only make complex the code of setup_mac_address() and display an invalid value in the associated pr_err. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
96d66a9b8c
commit
cf8df34015
1 changed files with 2 additions and 2 deletions
|
@ -580,8 +580,8 @@ __weak int setup_mac_address(void)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
pr_debug("OTP MAC address = %pM\n", enetaddr);
|
pr_debug("OTP MAC address = %pM\n", enetaddr);
|
||||||
ret = !eth_env_set_enetaddr("ethaddr", enetaddr);
|
ret = eth_env_set_enetaddr("ethaddr", enetaddr);
|
||||||
if (!ret)
|
if (ret)
|
||||||
pr_err("Failed to set mac address %pM from OTP: %d\n",
|
pr_err("Failed to set mac address %pM from OTP: %d\n",
|
||||||
enetaddr, ret);
|
enetaddr, ret);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue