[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220923143742.87093-4-yangyingliang@huawei.com>
Date: Fri, 23 Sep 2022 22:37:42 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <netdev@...r.kernel.org>
CC: <andrew@...n.ch>, <vivien.didelot@...il.com>,
<f.fainelli@...il.com>, <olteanv@...il.com>,
<woojung.huh@...rochip.com>, <Arun.Ramadoss@...rochip.com>,
<george.mccollister@...il.com>, <davem@...emloft.net>,
<kuba@...nel.org>
Subject: [PATCH net-next 3/3] net: dsa: xrs700x: remove unnecessary i2c_set_clientdata()
Remove unnecessary i2c_set_clientdata() in ->remove(), the driver_data
will be set to NULL in device_unbind_cleanup() after calling ->remove().
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/net/dsa/xrs700x/xrs700x_i2c.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/dsa/xrs700x/xrs700x_i2c.c b/drivers/net/dsa/xrs700x/xrs700x_i2c.c
index 6deae388a0d6..cd533b9e17ec 100644
--- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c
+++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c
@@ -114,8 +114,6 @@ static int xrs700x_i2c_remove(struct i2c_client *i2c)
xrs700x_switch_remove(priv);
- i2c_set_clientdata(i2c, NULL);
-
return 0;
}
--
2.25.1
Powered by blists - more mailing lists