* [patch 16/21] atl1e: remove the unneeded (struct atl1e_adapter *)
@ 2008-09-22 21:52 akpm
2008-09-25 0:49 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-09-22 21:52 UTC (permalink / raw)
To: jeff; +Cc: netdev, akpm, jie.yang
From: Jie Yang <jie.yang@atheros.com>
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>
---
drivers/net/atl1e/atl1e_hw.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -puN drivers/net/atl1e/atl1e_hw.c~atl1e-remove-the-unneeded-struct-atl1e_adapter drivers/net/atl1e/atl1e_hw.c
--- a/drivers/net/atl1e/atl1e_hw.c~atl1e-remove-the-unneeded-struct-atl1e_adapter
+++ a/drivers/net/atl1e/atl1e_hw.c
@@ -397,7 +397,7 @@ static int atl1e_phy_setup_autoneg_adv(s
*/
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;
u32 idle_status_data = 0;
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 16/21] atl1e: remove the unneeded (struct atl1e_adapter *)
2008-09-22 21:52 [patch 16/21] atl1e: remove the unneeded (struct atl1e_adapter *) akpm
@ 2008-09-25 0:49 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-09-25 0:49 UTC (permalink / raw)
To: akpm; +Cc: netdev, jie.yang
akpm@linux-foundation.org wrote:
> From: Jie Yang <jie.yang@atheros.com>
>
> 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>
> ---
>
> drivers/net/atl1e/atl1e_hw.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff -puN drivers/net/atl1e/atl1e_hw.c~atl1e-remove-the-unneeded-struct-atl1e_adapter drivers/net/atl1e/atl1e_hw.c
> --- a/drivers/net/atl1e/atl1e_hw.c~atl1e-remove-the-unneeded-struct-atl1e_adapter
> +++ a/drivers/net/atl1e/atl1e_hw.c
> @@ -397,7 +397,7 @@ static int atl1e_phy_setup_autoneg_adv(s
> */
> 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;
>
> u32 idle_status_data = 0;
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-25 0:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 21:52 [patch 16/21] atl1e: remove the unneeded (struct atl1e_adapter *) akpm
2008-09-25 0:49 ` Jeff Garzik
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).