[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230711013920.549113-1-yunchuan@nfschina.com>
Date: Tue, 11 Jul 2023 09:39:21 +0800
From: Wu Yunchuan <yunchuan@...china.com>
To: qiang.zhao@....com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com
Cc: netdev@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
wuych <yunchuan@...china.com>
Subject: [PATCH net-next v3 01/10] net: wan: Remove unnecessary (void*) conversions
From: wuych <yunchuan@...china.com>
Pointer variables of void * type do not require type cast.
Signed-off-by: Wu Yunchuan <yunchuan@...china.com>
---
drivers/net/wan/fsl_ucc_hdlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
index 47c2ad7a3e42..91e37c3dcbee 100644
--- a/drivers/net/wan/fsl_ucc_hdlc.c
+++ b/drivers/net/wan/fsl_ucc_hdlc.c
@@ -350,7 +350,7 @@ static int uhdlc_init(struct ucc_hdlc_private *priv)
static netdev_tx_t ucc_hdlc_tx(struct sk_buff *skb, struct net_device *dev)
{
hdlc_device *hdlc = dev_to_hdlc(dev);
- struct ucc_hdlc_private *priv = (struct ucc_hdlc_private *)hdlc->priv;
+ struct ucc_hdlc_private *priv = hdlc->priv;
struct qe_bd *bd;
u16 bd_status;
unsigned long flags;
--
2.30.2
Powered by blists - more mailing lists