mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
arch/risc-v/src/mpfs/mpfs_ethernet.c: Set correct return value
Return error in case of mpfs_i2cbus_initialize() failure. Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
This commit is contained in:
committed by
Xiang Xiao
parent
e1fb0b30c4
commit
dd4ee256c3
@@ -3357,6 +3357,10 @@ static int mpfs_phyinit(struct mpfs_ethmac_s *priv)
|
||||
{
|
||||
ret = ksz9477_i2c_init(bus, KSZ9477_PORT_SGMII);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user