From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: lenb@kernel.org, linux-pm@vger.kernel.org,
linux-acpi@vger.kernel.org, patches@linaro.org,
linaro-dev@lists.linaro.org
Subject: Re: [PATCH 3/3] acpi : remove pointless variable initialization
Date: Sat, 15 Sep 2012 22:56:42 +0200 [thread overview]
Message-ID: <201209152256.42695.rjw@sisk.pl> (raw)
In-Reply-To: <1347614736-9553-3-git-send-email-daniel.lezcano@linaro.org>
On Friday, September 14, 2012, Daniel Lezcano wrote:
> 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 <daniel.lezcano@linaro.org>
Applied to the linux-next branch of the linux-pm.git tree as v3.7 material.
Thanks,
Rafael
> ---
> 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;
>
next prev parent reply other threads:[~2012-09-15 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-14 9:25 [PATCH 1/3] acpi : move cpuidle_device field out of the acpi_processor_power structure Daniel Lezcano
2012-09-14 9:25 ` [PATCH 2/3] acpi : remove unused function parameter Daniel Lezcano
2012-09-15 20:56 ` Rafael J. Wysocki
2012-09-14 9:25 ` [PATCH 3/3] acpi : remove pointless variable initialization Daniel Lezcano
2012-09-15 20:56 ` Rafael J. Wysocki [this message]
[not found] ` <1347614736-9553-1-git-send-email-daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-09-15 20:44 ` [PATCH 1/3] acpi : move cpuidle_device field out of the acpi_processor_power structure Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201209152256.42695.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=daniel.lezcano@linaro.org \
--cc=lenb@kernel.org \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=patches@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).