Commit 1002f817 authored by Wu Yunchuan's avatar Wu Yunchuan Committed by Kalle Valo

wifi: ray_cs: Remove unnecessary (void*) conversions

No need cast (void *) to (struct net_device *).
Signed-off-by: default avatarWu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231020093432.214001-1-yunchuan@nfschina.com
parent b6144dcd
...@@ -348,7 +348,7 @@ static int ray_config(struct pcmcia_device *link) ...@@ -348,7 +348,7 @@ static int ray_config(struct pcmcia_device *link)
{ {
int ret = 0; int ret = 0;
int i; int i;
struct net_device *dev = (struct net_device *)link->priv; struct net_device *dev = link->priv;
ray_dev_t *local = netdev_priv(dev); ray_dev_t *local = netdev_priv(dev);
dev_dbg(&link->dev, "ray_config\n"); dev_dbg(&link->dev, "ray_config\n");
...@@ -1830,7 +1830,7 @@ static void set_multicast_list(struct net_device *dev) ...@@ -1830,7 +1830,7 @@ static void set_multicast_list(struct net_device *dev)
=============================================================================*/ =============================================================================*/
static irqreturn_t ray_interrupt(int irq, void *dev_id) static irqreturn_t ray_interrupt(int irq, void *dev_id)
{ {
struct net_device *dev = (struct net_device *)dev_id; struct net_device *dev = dev_id;
struct pcmcia_device *link; struct pcmcia_device *link;
ray_dev_t *local; ray_dev_t *local;
struct ccs __iomem *pccs; struct ccs __iomem *pccs;
...@@ -2567,7 +2567,7 @@ static int ray_cs_proc_show(struct seq_file *m, void *v) ...@@ -2567,7 +2567,7 @@ static int ray_cs_proc_show(struct seq_file *m, void *v)
link = this_device; link = this_device;
if (!link) if (!link)
return 0; return 0;
dev = (struct net_device *)link->priv; dev = link->priv;
if (!dev) if (!dev)
return 0; return 0;
local = netdev_priv(dev); local = netdev_priv(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment