提交 ecce5650 编写于 作者: M Mark Einon 提交者: Greg Kroah-Hartman

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: NMark Einon <mark.einon@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e112eb59
...@@ -3624,7 +3624,7 @@ static irqreturn_t et131x_isr(int irq, void *dev_id) ...@@ -3624,7 +3624,7 @@ static irqreturn_t et131x_isr(int irq, void *dev_id)
{ {
bool handled = true; bool handled = true;
bool enable_interrupts = 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 et131x_adapter *adapter = netdev_priv(netdev);
struct address_map __iomem *iomem = adapter->regs; struct address_map __iomem *iomem = adapter->regs;
struct rx_ring *rx_ring = &adapter->rx_ring; struct rx_ring *rx_ring = &adapter->rx_ring;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册