Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irda: donauboe: 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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jingoo Han and committed by
David S. Miller
e015b443 50d1784e

+3 -3
+3 -3
drivers/net/irda/donauboe.c
··· 1488 1488 toshoboe_close (struct pci_dev *pci_dev) 1489 1489 { 1490 1490 int i; 1491 - struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); 1491 + struct toshoboe_cb *self = pci_get_drvdata(pci_dev); 1492 1492 1493 1493 IRDA_DEBUG (4, "%s()\n", __func__); 1494 1494 ··· 1696 1696 static int 1697 1697 toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap) 1698 1698 { 1699 - struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); 1699 + struct toshoboe_cb *self = pci_get_drvdata(pci_dev); 1700 1700 unsigned long flags; 1701 1701 int i = 10; 1702 1702 ··· 1725 1725 static int 1726 1726 toshoboe_wakeup (struct pci_dev *pci_dev) 1727 1727 { 1728 - struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); 1728 + struct toshoboe_cb *self = pci_get_drvdata(pci_dev); 1729 1729 unsigned long flags; 1730 1730 1731 1731 IRDA_DEBUG (4, "%s()\n", __func__);