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: 1456451 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C134A40220 for ; Fri, 14 Sep 2012 09:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757754Ab2INJZq (ORCPT ); Fri, 14 Sep 2012 05:25:46 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:42472 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758542Ab2INJZp (ORCPT ); Fri, 14 Sep 2012 05:25:45 -0400 Received: by weyx8 with SMTP id x8so2266494wey.19 for ; Fri, 14 Sep 2012 02:25:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=3n20XrFMVXzeaNQrVgTZqYY0FRcivFumRP2JQs2hP2g=; b=Z8pP+LOVK305QG9OG+4KdGEb75f/wHVg0QlDt60/n3jsfn7o3UaM/XpKKq0YJqXer7 zXZ6FOI8BE5Nh/MuJjiVUe+IqYuKct+YO6APwntILVeDN2XkQ7B+qxndI2mB1MQvRt1w flgnF8AaeBe6ix2vglX+Im4pkMEWlxWYOtShYHHbhCL3Pslv49/CFXVx3R8fLwWVa2AT AXHNjlE7vmv0DDM7daxbX+58Q6Lyxt5OWqt3g9YmKAd0AvkjyCEiwZ4b0nCRSYW5SuD3 l4+GTcs+IpRNmM6xa4m/CCbb6qdbnwm0ASlkc+Nrf8I902uJHjo+SpUDVjaSng7b870m bgJw== 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: ALoCoQms/Sp6RehoxCzSEp87ihReAgx+OZNg8vcKGf0c0DKERZQuOVFD2D2zYWCetbbJ+Jt5BSVO Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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;