irda: vlsi_ir: Remove casting the return value which is a void pointer
Subsystems (2)
PATCH 2/2 irda: vlsi_ir: Remove casting the return value which is a void pointer
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 <[email protected]>
--- drivers/net/irda/vlsi_ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/irda/vlsi_ir.c +1 -1
@@ -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);
Signature · 1 line
1.7.10.4
From: Jingoo Han <[email protected]>
Date: Mon, 09 Sep 2013 14:24:24 +0900
Quoted 5 lines
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 <[email protected]>
Applied.