From patchwork Mon Sep 2 03:57:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 19666 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7BE0D25E41 for ; Mon, 2 Sep 2013 04:07:05 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id a11sf4896042qen.1 for ; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=K9AIADORY0amnCgvEaIHtjRFbc8/9ZoMdDSn0q/dY8I=; b=kZM6nOv8E7PfEvsWXdeimg7SmwIElk24rG5Mk9vUmj+/0JsvOf7B5b3Vid7Qa93l5Y W+qA6XX9Qf+Ajy3bTR1+DYpg7YjiMpcPwxVLq69utSmV62IUhz/xIMl3m7Xu8asCEkLN LXUp6gDMy09TrfGKbGclS9szKWcdH9zfUr+xozsWRkjci6VHkS1JqY1Ll+Lb8HqpRUVX Jb0G4EHnf/FhSuac219JzEwXt1LcTnHb6rkeJke78XxnlVUQq+KY+34iaaOaOINm/qru orGvvl2MVpTICKBVc3GGsxEpkIooE6sEW4pHtuGmP+6Z4l39Hl9gKyCGrLuuQ9rJx1TQ EM9Q== X-Received: by 10.59.11.2 with SMTP id ee2mr1606744ved.11.1378094824667; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.129 with SMTP id k1ls2075888qeh.75.gmail; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) X-Received: by 10.220.1.203 with SMTP id 11mr15817669vcg.15.1378094824531; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id o5si1714492vdw.37.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Sep 2013 21:07:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id hz10so2759486vcb.12 for ; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) X-Gm-Message-State: ALoCoQkQNFiNggrLoXevjrj61BR0e/Zi3oGTwNTi2m21D9AChNiYk4DcQGhjfQEopGOneGj9iikB X-Received: by 10.221.44.136 with SMTP id ug8mr20990055vcb.13.1378094824389; Sun, 01 Sep 2013 21:07:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp92608vcz; Sun, 1 Sep 2013 21:07:03 -0700 (PDT) X-Received: by 10.66.150.97 with SMTP id uh1mr24362237pab.118.1378094823412; Sun, 01 Sep 2013 21:07:03 -0700 (PDT) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id yo4si9034407pac.295.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Sep 2013 21:07:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id lf1so4661569pab.24 for ; Sun, 01 Sep 2013 21:07:02 -0700 (PDT) X-Received: by 10.66.146.42 with SMTP id sz10mr24127702pab.78.1378094822651; Sun, 01 Sep 2013 21:07:02 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id ye1sm13999973pab.19.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 01 Sep 2013 21:07:02 -0700 (PDT) From: Hanjun Guo To: "Rafael J. Wysocki" Cc: Thomas Gleixner , Tony Luck , Ingo Molnar , Jiang Liu , linux-acpi@vger.kernel.org, x86@kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH v2 4/6] ACPI / processor: remove some dead code in acpi_processor_get_info() Date: Mon, 2 Sep 2013 11:57:37 +0800 Message-Id: <1378094259-5922-5-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378094259-5922-1-git-send-email-hanjun.guo@linaro.org> References: <1378094259-5922-1-git-send-email-hanjun.guo@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jiang Liu errata.smp is used by nowhere, so the variable assignment is meanless, remove it. Signed-off-by: Jiang Liu Signed-off-by: Hanjun Guo --- drivers/acpi/acpi_processor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index 66c9b70..5364d02 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c @@ -220,9 +220,6 @@ static int acpi_processor_get_info(struct acpi_device *device) acpi_status status = AE_OK; static int cpu0_initialized; - if (num_online_cpus() > 1) - errata.smp = TRUE; - acpi_processor_errata(pr); /*