mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 22:08:35 +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:
parent
e1fb0b30c4
commit
dd4ee256c3
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue