2009-09-21 05:02:03

by Jie Yang

[permalink] [raw]
Subject: [Patch net-next]atl1c:remove compiling warning

Set wol_ctrl_data to value 0, to remove compiling warning.

Signed-off-by: Jie Yang <[email protected]>
---
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c
index be2c6cf..1372e9a 100644
--- a/drivers/net/atl1c/atl1c_main.c
+++ b/drivers/net/atl1c/atl1c_main.c
@@ -2296,7 +2296,7 @@ static int atl1c_suspend(struct pci_dev *pdev, pm_message_t state)
u32 ctrl;
u32 mac_ctrl_data;
u32 master_ctrl_data;
- u32 wol_ctrl_data;
+ u32 wol_ctrl_data = 0;
u16 mii_bmsr_data;
u16 save_autoneg_advertised;
u16 mii_intr_status_data;


2009-09-22 21:21:21

by David Miller

[permalink] [raw]
Subject: Re: [Patch net-next]atl1c:remove compiling warning

From: <[email protected]>
Date: Mon, 21 Sep 2009 13:01:58 +0800

> Set wol_ctrl_data to value 0, to remove compiling warning.
>
> Signed-off-by: Jie Yang <[email protected]>

Applied.