Skip to content

Commit

Permalink
wifi: ray_cs: Remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
No need cast (void *) to (struct net_device *).

Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231020093432.214001-1-yunchuan@nfschina.com
  • Loading branch information
Wu Yunchuan authored and Kalle Valo committed Oct 25, 2023
1 parent b6144dc commit 1002f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/legacy/ray_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static int ray_config(struct pcmcia_device *link)
{
int ret = 0;
int i;
struct net_device *dev = (struct net_device *)link->priv;
struct net_device *dev = link->priv;
ray_dev_t *local = netdev_priv(dev);

dev_dbg(&link->dev, "ray_config\n");
Expand Down Expand Up @@ -1830,7 +1830,7 @@ static void set_multicast_list(struct net_device *dev)
=============================================================================*/
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;
ray_dev_t *local;
struct ccs __iomem *pccs;
Expand Down Expand Up @@ -2567,7 +2567,7 @@ static int ray_cs_proc_show(struct seq_file *m, void *v)
link = this_device;
if (!link)
return 0;
dev = (struct net_device *)link->priv;
dev = link->priv;
if (!dev)
return 0;
local = netdev_priv(dev);
Expand Down

0 comments on commit 1002f81

Please sign in to comment.