]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dsa: use "err" instead of "ret" in dsa_port_probe
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 24 Aug 2021 12:00:39 +0000 (15:00 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:55 +0000 (18:50 +0300)
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>
net/dsa-uclass.c

index 694664d81bbb3abc53cf1714ba3c436ab43552e4..f279ca7d2d6c41e328b6249eb4f75b479ecfbedd 100644 (file)
@@ -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