summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-08-24 15:00:39 +0300
committerRamon Fried <rfried.dev@gmail.com>2021-09-28 18:50:55 +0300
commitf4b712b840dd5fe0b984aadfe466c1886a31e906 (patch)
tree0edc7e9c86b3860c6f05444e9c3a789ecb88245b /net
parent351b6bb4223ec896a5814db3d36768c564deda5d (diff)
downloadu-boot-socfpga-f4b712b840dd5fe0b984aadfe466c1886a31e906.tar.gz
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>
Diffstat (limited to 'net')
-rw-r--r--net/dsa-uclass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c
index 694664d81b..f279ca7d2d 100644
--- a/net/dsa-uclass.c
+++ b/net/dsa-uclass.c
@@ -248,7 +248,7 @@ static int dsa_port_probe(struct udevice *pdev)
struct dsa_port_pdata *port_pdata;
struct dsa_priv *dsa_priv;
struct udevice *master;
- int ret;
+ int err;
port_pdata = dev_get_parent_plat(pdev);
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
* removed during runtime.
*/
- ret = device_probe(master);
- if (ret)
- return ret;
+ err = device_probe(master);
+ if (err)
+ return err;
/*
* Inherit port's hwaddr from the DSA master, unless the port already