aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-15 06:12:28 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-17 13:36:52 -0500
commitb16fed0af8416ee0fe9af6c1977f7b05e7e7c9b2 (patch)
tree6be42c6894429a0f956734800afe8d39a00e9eac /drivers/net/qlge
parent4dd151876b6b81040121708ebc23c6cd1a3d5be8 (diff)
drivers/net/qlge: Remove unnecessary casts of netdev_priv
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r--drivers/net/qlge/qlge_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index c30e0fe55a31..d9a76260880b 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3844,7 +3844,7 @@ static int ql_adapter_reset(struct ql_adapter *qdev)
3844 3844
3845static void ql_display_dev_info(struct net_device *ndev) 3845static void ql_display_dev_info(struct net_device *ndev)
3846{ 3846{
3847 struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); 3847 struct ql_adapter *qdev = netdev_priv(ndev);
3848 3848
3849 netif_info(qdev, probe, qdev->ndev, 3849 netif_info(qdev, probe, qdev->ndev,
3850 "Function #%d, Port %d, NIC Roll %d, NIC Rev = %d, " 3850 "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 4264
4265static void qlge_set_multicast_list(struct net_device *ndev) 4265static void qlge_set_multicast_list(struct net_device *ndev)
4266{ 4266{
4267 struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); 4267 struct ql_adapter *qdev = netdev_priv(ndev);
4268 struct netdev_hw_addr *ha; 4268 struct netdev_hw_addr *ha;
4269 int i, status; 4269 int i, status;
4270 4270
@@ -4354,7 +4354,7 @@ exit:
4354 4354
4355static int qlge_set_mac_address(struct net_device *ndev, void *p) 4355static int qlge_set_mac_address(struct net_device *ndev, void *p)
4356{ 4356{
4357 struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); 4357 struct ql_adapter *qdev = netdev_priv(ndev);
4358 struct sockaddr *addr = p; 4358 struct sockaddr *addr = p;
4359 int status; 4359 int status;
4360 4360
@@ -4377,7 +4377,7 @@ static int qlge_set_mac_address(struct net_device *ndev, void *p)
4377 4377
4378static void qlge_tx_timeout(struct net_device *ndev) 4378static void qlge_tx_timeout(struct net_device *ndev)
4379{ 4379{
4380 struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev); 4380 struct ql_adapter *qdev = netdev_priv(ndev);
4381 ql_queue_asic_error(qdev); 4381 ql_queue_asic_error(qdev);
4382} 4382}
4383 4383