netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]atl1e: remove the unneeded (struct atl1e_adapter *)
@ 2008-08-31  6:06 jie.yang
  0 siblings, 0 replies; only message in thread
From: jie.yang @ 2008-08-31  6:06 UTC (permalink / raw)
  To: jeff; +Cc: akpm, matthew, netdev, linux-kernel, Jie Yang

from Jie Yang <jie.yang@atheros.com>

remove the unneeded (struct atl1e_adapter *), for hw->adapter already 
has type atl1e_adapter *.

Signed-off-by: Jie Yang <jie.yang@atheros.com>
---

diff --git a/drivers/net/atl1e/atl1e_hw.c b/drivers/net/atl1e/atl1e_hw.c
index 949e753..8cbc1b5 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)
  */
 int atl1e_phy_commit(struct atl1e_hw *hw)
 {
-       struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter;
+       struct atl1e_adapter *adapter = hw->adapter;
        struct pci_dev *pdev = adapter->pdev;
        int ret_val;
        u16 phy_data;
@@ -431,7 +431,7 @@ int atl1e_phy_commit(struct atl1e_hw *hw)

 int atl1e_phy_init(struct atl1e_hw *hw)
 {
-       struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter;
+       struct atl1e_adapter *adapter = hw->adapter;
        struct pci_dev *pdev = adapter->pdev;
        s32 ret_val;
        u16 phy_val;
@@ -525,7 +525,7 @@ int atl1e_phy_init(struct atl1e_hw *hw)
  */
 int atl1e_reset_hw(struct atl1e_hw *hw)
 {
-       struct atl1e_adapter *adapter = (struct atl1e_adapter *)hw->adapter;
+       struct atl1e_adapter *adapter = hw->adapter;
        struct pci_dev *pdev = adapter->pdev;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-31  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-31  6:06 [PATCH]atl1e: remove the unneeded (struct atl1e_adapter *) jie.yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).