From patchwork Sun Oct 9 07:09:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mengyuan Lou X-Patchwork-Id: 13001923 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 694C8C433FE for ; Sun, 9 Oct 2022 07:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiJIHR2 (ORCPT ); Sun, 9 Oct 2022 03:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbiJIHR1 (ORCPT ); Sun, 9 Oct 2022 03:17:27 -0400 Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F552DAB4 for ; Sun, 9 Oct 2022 00:17:23 -0700 (PDT) X-QQ-mid: bizesmtp82t1665299374t4yss6jy Received: from localhost.localdomain ( [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 09 Oct 2022 15:09:18 +0800 (CST) X-QQ-SSF: 01400000000000M0M000000A0000000 X-QQ-FEAT: znfcQSa1hKZmOr4I++H8gUPXGIbcrFc7pqENhWtBqgByBmmkia5k5YD2wYL61 MuiYODINy8Pk5EytFtEO3ghw7m//IsyoPQYCixhAZ7mPCcGkHA1xdeTR8oEKoe0G+2SMNvM uxI5g3nqHAK0HSxl81NblNZmHUEgFF8H9P3RkFe7CE72YSDHapYUuvcgjseUXGwS7Oz6jE3 dAlrhYnNy41MZiQBu4R/aM9pFCRtnyZXnluG90HO85luS1nbtPYf0YKALnGhpg2rMemrvNU BTqw9Ak4blomAFPdOzia6hzbYN1T91OYqUeq5bhLEIPpVSjenCMgFpPz1SicS1Ykamh171s 00wM7L8w4mR6/z/tRQ/5iRkmn/5HIV3rOKvi9uIT1hW0EZPjLMfefjUMLlQLV9PQcryCZ8G YZTZ8DiWHDE= X-QQ-GoodBg: 2 From: Mengyuan Lou To: netdev@vger.kernel.org Cc: jiawenwu@trustnetic.com, Mengyuan Lou Subject: [PATCH net-next] net: ngbe: Variables need to be initialized Date: Sun, 9 Oct 2022 15:09:12 +0800 Message-Id: <20221009070912.55353-1-mengyuanlou@net-swift.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:net-swift.com:qybglogicsvr:qybglogicsvr1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Variables need to be initialized in ngbe_shutdown() Fix: commit ("net: ngbe: Add build support for ngbe") Signed-off-by: Mengyuan Lou --- 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);