]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: et131x: don't cast a void* to a struct pointer
authorMark Einon <mark.einon@gmail.com>
Tue, 23 Sep 2014 19:41:12 +0000 (20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:38:15 +0000 (23:38 -0700)
Casting a void* popinter to a struct pointer is unnecessary, don't do
it.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index 2889f86e605226b9069656c78bdc029fc7d53fa3..6539a8a77f83794aed15df78d2197735f60ae402 100644 (file)
@@ -3624,7 +3624,7 @@ static irqreturn_t et131x_isr(int irq, void *dev_id)
 {
        bool handled = true;
        bool enable_interrupts = true;
-       struct net_device *netdev = (struct net_device *)dev_id;
+       struct net_device *netdev = dev_id;
        struct et131x_adapter *adapter = netdev_priv(netdev);
        struct address_map __iomem *iomem = adapter->regs;
        struct rx_ring *rx_ring = &adapter->rx_ring;