[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221009070912.55353-1-mengyuanlou@net-swift.com>
Date: Sun, 9 Oct 2022 15:09:12 +0800
From: Mengyuan Lou <mengyuanlou@...-swift.com>
To: netdev@...r.kernel.org
Cc: jiawenwu@...stnetic.com, Mengyuan Lou <mengyuanlou@...-swift.com>
Subject: [PATCH net-next] net: ngbe: Variables need to be initialized
Variables need to be initialized in ngbe_shutdown()
Fix: commit <e79e40c83b9f> ("net: ngbe: Add build support for ngbe")
Signed-off-by: Mengyuan Lou <mengyuanlou@...-swift.com>
---
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
index 7674cb6e5700..f754e53eb852 100644
--- a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
+++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
@@ -46,7 +46,7 @@ static void ngbe_dev_shutdown(struct pci_dev *pdev, bool *enable_wake)
static void ngbe_shutdown(struct pci_dev *pdev)
{
- bool wake;
+ bool wake = false;
ngbe_dev_shutdown(pdev, &wake);
--
2.37.3
Powered by blists - more mailing lists