Skip to content

Commit

Permalink
irda: vlsi_ir: Remove casting the return value which is a void pointer
Browse files Browse the repository at this point in the history
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jingoo Han authored and David S. Miller committed Sep 11, 2013
1 parent e015b44 commit 1ecfd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/vlsi_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static int vlsi_process_rx(struct vlsi_ring *r, struct ring_descr *rd)
int crclen, len = 0;
struct sk_buff *skb;
int ret = 0;
struct net_device *ndev = (struct net_device *)pci_get_drvdata(r->pdev);
struct net_device *ndev = pci_get_drvdata(r->pdev);
vlsi_irda_dev_t *idev = netdev_priv(ndev);

pci_dma_sync_single_for_cpu(r->pdev, rd_get_addr(rd), r->len, r->dir);
Expand Down

0 comments on commit 1ecfd46

Please sign in to comment.