diff options
author | Mark Einon <mark.einon@gmail.com> | 2014-09-23 20:41:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 23:38:15 -0700 |
commit | ecce565056db18b6136d9ff9232aa3761aae4e48 (patch) | |
tree | 09492b729cea3de242f24dce4e7f7345b5eafcdc /drivers/staging/et131x/et131x.c | |
parent | e112eb598db4fb7b99086c33765cf262dcfda0d2 (diff) |
staging: et131x: don't cast a void* to a struct pointer
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>
Diffstat (limited to 'drivers/staging/et131x/et131x.c')
-rw-r--r-- | drivers/staging/et131x/et131x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 2889f86e6052..6539a8a77f83 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -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; |