提交 e015b443 编写于 作者: J Jingoo Han 提交者: David S. Miller

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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 50d1784e
...@@ -1488,7 +1488,7 @@ static void ...@@ -1488,7 +1488,7 @@ static void
toshoboe_close (struct pci_dev *pci_dev) toshoboe_close (struct pci_dev *pci_dev)
{ {
int i; int i;
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
IRDA_DEBUG (4, "%s()\n", __func__); IRDA_DEBUG (4, "%s()\n", __func__);
...@@ -1696,7 +1696,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) ...@@ -1696,7 +1696,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
static int static int
toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap) toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
{ {
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
unsigned long flags; unsigned long flags;
int i = 10; int i = 10;
...@@ -1725,7 +1725,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap) ...@@ -1725,7 +1725,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
static int static int
toshoboe_wakeup (struct pci_dev *pci_dev) toshoboe_wakeup (struct pci_dev *pci_dev)
{ {
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev); struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
unsigned long flags; unsigned long flags;
IRDA_DEBUG (4, "%s()\n", __func__); IRDA_DEBUG (4, "%s()\n", __func__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册