提交 b16fed0a 编写于 作者: J Joe Perches 提交者: David S. Miller

drivers/net/qlge: Remove unnecessary casts of netdev_priv

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4dd15187
...@@ -3844,7 +3844,7 @@ static int ql_adapter_reset(struct ql_adapter *qdev) ...@@ -3844,7 +3844,7 @@ static int ql_adapter_reset(struct ql_adapter *qdev)
static void ql_display_dev_info(struct net_device *ndev) static void ql_display_dev_info(struct net_device *ndev)
{ {
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); struct ql_adapter *qdev = netdev_priv(ndev);
netif_info(qdev, probe, qdev->ndev, netif_info(qdev, probe, qdev->ndev,
"Function #%d, Port %d, NIC Roll %d, NIC Rev = %d, " "Function #%d, Port %d, NIC Roll %d, NIC Rev = %d, "
...@@ -4264,7 +4264,7 @@ static struct net_device_stats *qlge_get_stats(struct net_device ...@@ -4264,7 +4264,7 @@ static struct net_device_stats *qlge_get_stats(struct net_device
static void qlge_set_multicast_list(struct net_device *ndev) static void qlge_set_multicast_list(struct net_device *ndev)
{ {
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); struct ql_adapter *qdev = netdev_priv(ndev);
struct netdev_hw_addr *ha; struct netdev_hw_addr *ha;
int i, status; int i, status;
...@@ -4354,7 +4354,7 @@ static void qlge_set_multicast_list(struct net_device *ndev) ...@@ -4354,7 +4354,7 @@ static void qlge_set_multicast_list(struct net_device *ndev)
static int qlge_set_mac_address(struct net_device *ndev, void *p) static int qlge_set_mac_address(struct net_device *ndev, void *p)
{ {
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); struct ql_adapter *qdev = netdev_priv(ndev);
struct sockaddr *addr = p; struct sockaddr *addr = p;
int status; int status;
...@@ -4377,7 +4377,7 @@ static int qlge_set_mac_address(struct net_device *ndev, void *p) ...@@ -4377,7 +4377,7 @@ static int qlge_set_mac_address(struct net_device *ndev, void *p)
static void qlge_tx_timeout(struct net_device *ndev) static void qlge_tx_timeout(struct net_device *ndev)
{ {
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); struct ql_adapter *qdev = netdev_priv(ndev);
ql_queue_asic_error(qdev); ql_queue_asic_error(qdev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册