From patchwork Fri Sep 14 09:25:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 11415 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 14B2623E41 for ; Fri, 14 Sep 2012 09:25:47 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6FC72A33083 for ; Fri, 14 Sep 2012 09:25:46 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id k11so6222872iea.11 for ; Fri, 14 Sep 2012 02:25:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=3n20XrFMVXzeaNQrVgTZqYY0FRcivFumRP2JQs2hP2g=; b=B87Vq8QYopUg0wMOFI3+b6D86QIO3cfLKGOhP6miOhIggtpAjT55ZoPMUrlQWIbblj CUX10r24KTCO9w2etJfhetz8xaxQxtZpiAvrdCpH8ADt+r2kDQOT9oOFRgQG5o5/mPRi ImVFZrrOWzQF3d1eOGwtCnGYTtbvzGSyfVWB8c3L+4PEoec7HS3KNdVwsZNfF4D/3NlU PSF2oYHsctoaWLomr46tOBEpLLX2VR9bf41u/w9seZ5HE5sFdBwum3iPZgLDc4h5wiNQ 3J++bFyjBJxbDSUc+UWo0BvMYcE9E9nGCPXIEjhqIcx+NewJGxkk2yPQ2maKL0iX+vAl zxrQ== Received: by 10.50.7.212 with SMTP id l20mr2297086iga.43.1347614746210; Fri, 14 Sep 2012 02:25:46 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp179130igc; Fri, 14 Sep 2012 02:25:45 -0700 (PDT) Received: by 10.180.103.4 with SMTP id fs4mr4634494wib.16.1347614744914; Fri, 14 Sep 2012 02:25:44 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id g6si2474288wiy.38.2012.09.14.02.25.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 02:25:44 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wg0-f50.google.com with SMTP id ds11so2987992wgb.31 for ; Fri, 14 Sep 2012 02:25:44 -0700 (PDT) Received: by 10.180.81.99 with SMTP id z3mr4012530wix.0.1347614744483; Fri, 14 Sep 2012 02:25:44 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-110-236.w109-222.abo.wanadoo.fr. [109.222.197.236]) by mx.google.com with ESMTPS id ct3sm17996030wib.5.2012.09.14.02.25.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 02:25:43 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, patches@linaro.org, linaro-dev@lists.linaro.org Subject: [PATCH 3/3] acpi : remove pointless variable initialization Date: Fri, 14 Sep 2012 11:25:36 +0200 Message-Id: <1347614736-9553-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1347614736-9553-1-git-send-email-daniel.lezcano@linaro.org> References: <1347614736-9553-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnjqs1kYohbCxuvd89cNwHx+RcQUy1PhPezr6RCPZFoZtM9iV4kzbOqJD7FT8xKidR80fYx The 'errata' variable is a global variable which is set to zero, no need to do that with a memset in the init function. Signed-off-by: Daniel Lezcano --- drivers/acpi/processor_driver.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index 9c9288b..e78c2a5 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -905,8 +905,6 @@ static int __init acpi_processor_init(void) if (acpi_disabled) return 0; - memset(&errata, 0, sizeof(errata)); - result = acpi_bus_register_driver(&acpi_processor_driver); if (result < 0) return result;