diff options
author | Jie Yang <jie.yang@atheros.com> | 2008-09-22 17:52:25 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 20:49:05 -0400 |
commit | a4e77d063d61e4703db813470fefe90dac672b55 (patch) | |
tree | 2ac83169013b2f54261d7190b9e4dc9f6d00e8e9 /drivers/net/atl1e/atl1e_hw.c | |
parent | ac7198bb124e7007cfd48990d382678341886dba (diff) |
atl1e: remove the unneeded (struct atl1e_adapter *)
Remove the unneeded (struct atl1e_adapter *) casts, for hw->adapter
already has type atl1e_adapter *.
Signed-off-by: Jie Yang <jie.yang@atheros.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/atl1e/atl1e_hw.c')
-rw-r--r-- | drivers/net/atl1e/atl1e_hw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/atl1e/atl1e_hw.c b/drivers/net/atl1e/atl1e_hw.c index 949e75358bf0..8cbc1b59bd62 100644 --- a/drivers/net/atl1e/atl1e_hw.c +++ b/drivers/net/atl1e/atl1e_hw.c | |||
@@ -397,7 +397,7 @@ static int atl1e_phy_setup_autoneg_adv(struct atl1e_hw *hw) | |||
397 | */ | 397 | */ |
398 | int atl1e_phy_commit(struct atl1e_hw *hw) | 398 | int atl1e_phy_commit(struct atl1e_hw *hw) |
399 | { | 399 | { |
400 | struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter; | 400 | struct atl1e_adapter *adapter = hw->adapter; |
401 | struct pci_dev *pdev = adapter->pdev; | 401 | struct pci_dev *pdev = adapter->pdev; |
402 | int ret_val; | 402 | int ret_val; |
403 | u16 phy_data; | 403 | u16 phy_data; |
@@ -431,7 +431,7 @@ int atl1e_phy_commit(struct atl1e_hw *hw) | |||
431 | 431 | ||
432 | int atl1e_phy_init(struct atl1e_hw *hw) | 432 | int atl1e_phy_init(struct atl1e_hw *hw) |
433 | { | 433 | { |
434 | struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter; | 434 | struct atl1e_adapter *adapter = hw->adapter; |
435 | struct pci_dev *pdev = adapter->pdev; | 435 | struct pci_dev *pdev = adapter->pdev; |
436 | s32 ret_val; | 436 | s32 ret_val; |
437 | u16 phy_val; | 437 | u16 phy_val; |
@@ -525,7 +525,7 @@ int atl1e_phy_init(struct atl1e_hw *hw) | |||
525 | */ | 525 | */ |
526 | int atl1e_reset_hw(struct atl1e_hw *hw) | 526 | int atl1e_reset_hw(struct atl1e_hw *hw) |
527 | { | 527 | { |
528 | struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter; | 528 | struct atl1e_adapter *adapter = hw->adapter; |
529 | struct pci_dev *pdev = adapter->pdev; | 529 | struct pci_dev *pdev = adapter->pdev; |
530 | 530 | ||
531 | u32 idle_status_data = 0; | 531 | u32 idle_status_data = 0; |