@@ -3677,14 +3677,14 @@ static int rx_pkt(struct c4iw_dev *dev,
pdev = ip_dev_find(&init_net, iph->daddr);
e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
pdev, 0);
- pi = (struct port_info *)netdev_priv(pdev);
+ pi = netdev_priv(pdev);
tx_chan = cxgb4_port_chan(pdev);
dev_put(pdev);
} else {
pdev = get_real_dev(neigh->dev);
e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
pdev, 0);
- pi = (struct port_info *)netdev_priv(pdev);
+ pi = netdev_priv(pdev);
tx_chan = cxgb4_port_chan(pdev);
}
neigh_release(neigh);