From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web09.937.1573109357110421580 for ; Wed, 06 Nov 2019 22:49:17 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: prince.agyeman@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 22:49:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,277,1569308400"; d="scan'208";a="205588559" Received: from paagyema-desk2.amr.corp.intel.com ([10.24.15.58]) by orsmga003.jf.intel.com with ESMTP; 06 Nov 2019 22:49:16 -0800 From: "Agyeman, Prince" To: devel@edk2.groups.io Cc: Michael Kubacki , Chasel Chiu , Nate DeSimone Subject: [edk2-platforms] [PATCH] BoardModulePkg: Remove unused variable Date: Wed, 6 Nov 2019 22:49:16 -0800 Message-Id: <20191107064916.18892-1-prince.agyeman@intel.com> X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Removed unused variable 'RegEmptied' in BdsPs2KbcLib.c to avoid gcc 5 build error unused-but-set-variable. Cc: Michael Kubacki Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Prince Agyeman --- .../Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c index 3a885e0d71..eff10bddb4 100644 --- a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c +++ b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c @@ -47,13 +47,11 @@ DetectPs2Keyboard ( ) { UINT32 TimeOut; - UINT32 RegEmptied; UINT8 Data; UINT32 SumTimeOut; BOOLEAN FoundPs2Kbc; TimeOut = 0; - RegEmptied = 0; FoundPs2Kbc = FALSE; // -- 2.19.1.windows.1