]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: ksz9477: remove unnecessary variable
authorTim Harvey <tharvey@gateworks.com>
Tue, 7 Feb 2023 23:37:17 +0000 (15:37 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 5 May 2023 17:41:55 +0000 (13:41 -0400)
We don't do anything useful with the master dev, so remove the variable.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/ksz9477.c

index fecc394e0277763ea3410ef147fb6c9866630ac2..5b0ef78ab93b8be833253f77c0ef3d7074cc8397 100644 (file)
@@ -443,15 +443,10 @@ static int ksz_i2c_probe(struct udevice *dev)
 {
        struct dsa_pdata *pdata = dev_get_uclass_plat(dev);
        struct ksz_dsa_priv *priv = dev_get_priv(dev);
-       struct udevice *master = dsa_get_master(dev);
        int i, ret;
        u8 data8;
        u32 id;
 
-       if (!master)
-               return -ENODEV;
-
-       dev_dbg(dev, "%s %s master:%s\n", __func__, dev->name, master->name);
        dev_set_parent_priv(dev, priv);
 
        ret = i2c_set_chip_offset_len(dev, 2);