Skip to content

Commit

Permalink
irda: donauboe: 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 50d1784 commit e015b44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ static void
toshoboe_close (struct pci_dev *pci_dev)
{
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__);

Expand Down Expand Up @@ -1696,7 +1696,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
static int
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;
int i = 10;

Expand Down Expand Up @@ -1725,7 +1725,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
static int
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;

IRDA_DEBUG (4, "%s()\n", __func__);
Expand Down

0 comments on commit e015b44

Please sign in to comment.