Skip to content

Commit

Permalink
drivers/net/qlge: Remove unnecessary casts of netdev_priv
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 17, 2010
1 parent 4dd1518 commit b16fed0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@ static int ql_adapter_reset(struct ql_adapter *qdev)

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,
"Function #%d, Port %d, NIC Roll %d, NIC Rev = %d, "
Expand Down Expand Up @@ -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)
{
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev);
struct ql_adapter *qdev = netdev_priv(ndev);
struct netdev_hw_addr *ha;
int i, status;

Expand Down Expand Up @@ -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)
{
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev);
struct ql_adapter *qdev = netdev_priv(ndev);
struct sockaddr *addr = p;
int status;

Expand All @@ -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)
{
struct ql_adapter *qdev = (struct ql_adapter *)netdev_priv(ndev);
struct ql_adapter *qdev = netdev_priv(ndev);
ql_queue_asic_error(qdev);
}

Expand Down

0 comments on commit b16fed0

Please sign in to comment.