1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

net: dsa: use "err" instead of "ret" in dsa_port_probe

DM DSA uses "err" for error code values, so use this consistently.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Tested-by: Michael Walle <michael@walle.cc>
This commit is contained in:
Vladimir Oltean
2021-08-24 15:00:39 +03:00
committed by Ramon Fried
parent 351b6bb422
commit f4b712b840

View File

@@ -248,7 +248,7 @@ static int dsa_port_probe(struct udevice *pdev)
struct dsa_port_pdata *port_pdata; struct dsa_port_pdata *port_pdata;
struct dsa_priv *dsa_priv; struct dsa_priv *dsa_priv;
struct udevice *master; struct udevice *master;
int ret; int err;
port_pdata = dev_get_parent_plat(pdev); port_pdata = dev_get_parent_plat(pdev);
dsa_priv = dev_get_uclass_priv(dev); dsa_priv = dev_get_uclass_priv(dev);
@@ -268,9 +268,9 @@ static int dsa_port_probe(struct udevice *pdev)
* TODO: we assume the master device is always there and doesn't get * TODO: we assume the master device is always there and doesn't get
* removed during runtime. * removed during runtime.
*/ */
ret = device_probe(master); err = device_probe(master);
if (ret) if (err)
return ret; return err;
/* /*
* Inherit port's hwaddr from the DSA master, unless the port already * Inherit port's hwaddr from the DSA master, unless the port already