From patchwork Wed Dec 7 11:49:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 87058 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp278601qgi; Wed, 7 Dec 2016 04:08:28 -0800 (PST) X-Received: by 10.237.41.39 with SMTP id s36mr60674792qtd.90.1481112507994; Wed, 07 Dec 2016 04:08:27 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b189si14272481qke.119.2016.12.07.04.08.27; Wed, 07 Dec 2016 04:08:27 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A212660E41; Wed, 7 Dec 2016 12:08:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7321062EBB; Wed, 7 Dec 2016 11:56:37 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1705E60E03; Wed, 7 Dec 2016 11:54:25 +0000 (UTC) Received: from mail-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by lists.linaro.org (Postfix) with ESMTPS id D812260F06 for ; Wed, 7 Dec 2016 11:52:27 +0000 (UTC) Received: by mail-pg0-f52.google.com with SMTP id p66so161421278pga.2 for ; Wed, 07 Dec 2016 03:52:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uuR7GUGhmoj7zzm+eAaWNnoWuk7w5EkLqT+U+0ooUVQ=; b=Si1wEqeU5pU4VS4RW7N8CC05i1nP3BXyHxU7rxuGh77hc48lLcO0FSiY3WF0Ky51yI /JOS5gXKG/L6GdSkNmKMgNWdtsaMoLKKgMECCvelC8Lf/7HHOl+SVs1WrVPxekYimIEQ kwyTo36fOoAj9yeVLGqDEGTSfPyYH5+rfLZRMFZnXW80ZdDdCebD0/w7ATNW4KbPJHMf 3I4vdphty4hVXi7Ew8W4XCnMWQI9ftlgaosk8q0d0OC0rSE5lrZSKu0ezgcda+/RZxNY GkPushNfzfYGrqw4KHrbfMGVGaU3p6/fX6ifc/DFQYLkbV/Llm5yiJ1j67bxZLYZxKXv mEWA== X-Gm-Message-State: AKaTC00YzYJSxHoRZSzljTN1VwNVHwUdrCxuDxtY9uNX1fgiwRPQYcMgBzM6TerKXHgIZmok40Y= X-Received: by 10.99.115.82 with SMTP id d18mr118392726pgn.56.1481111547140; Wed, 07 Dec 2016 03:52:27 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id y20sm42169141pfj.26.2016.12.07.03.52.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 03:52:26 -0800 (PST) From: Heyi Guo To: linaro-uefi@lists.linaro.org Date: Wed, 7 Dec 2016 19:49:22 +0800 Message-Id: <1481111375-71058-26-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481111375-71058-1-git-send-email-heyi.guo@linaro.org> References: <1481111375-71058-1-git-send-email-heyi.guo@linaro.org> Cc: sunchenhui@huawei.com, wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v7 25/38] Hisilicon: Remove unnesseary variable initializtion X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" The variable will be initialized in the function code, so it is not nesseary to be filled a data in the definition. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Reviewed-by: Leif Lindholm --- .../Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c b/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c index 005d28f..61473e8 100644 --- a/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c +++ b/Chips/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c @@ -226,7 +226,7 @@ GetCacheSocketStr ( OUT CHAR16 *CacheSocketStr ) { - UINTN CacheSocketStrLen = 0; + UINTN CacheSocketStrLen; if(CacheLevel == CPU_CACHE_L1_Instruction) { @@ -258,7 +258,6 @@ UpdateSmbiosCacheTable ( CACHE_SRAM_TYPE_DATA CacheSramType = {0}; CoreCount = 16; // Default value is 16 Core - CacheSize = 0; // // Set Cache Configuration