From: Pavel Machek <pavel@ucw.cz>
To: Bruno Bigras <bigras.bruno@gmail.com>
Cc: lenb@kernel.org, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] acpi: sleep: fixed a brace coding style issue
Date: Wed, 31 Mar 2010 16:46:30 +0200 [thread overview]
Message-ID: <20100331144629.GB3449@ucw.cz> (raw)
In-Reply-To: <1268196980-5697-1-git-send-email-bigras.bruno@gmail.com>
On Tue 2010-03-09 23:56:20, Bruno Bigras wrote:
> Fix a coding style issue.
>
> Signed-off-by: Bruno Bigras <bigras.bruno@gmail.com>
While I'm not fan of {}s, this is really excessive.
...especially in a code that uses u32 to pass enums, and opencodes
typecasts.
Pavel
> ---
> drivers/acpi/sleep.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
> index 3bde594..fc8343f 100644
> --- a/drivers/acpi/sleep.c
> +++ b/drivers/acpi/sleep.c
> @@ -62,9 +62,9 @@ static int acpi_sleep_prepare(u32 acpi_state)
> #ifdef CONFIG_ACPI_SLEEP
> /* do we have a wakeup address for S2 and S3? */
> if (acpi_state == ACPI_STATE_S3) {
> - if (!acpi_wakeup_address) {
> + if (!acpi_wakeup_address)
> return -EFAULT;
> - }
> +
> acpi_set_firmware_waking_vector(
> (acpi_physical_address)acpi_wakeup_address);
>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2010-03-31 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 4:56 Bruno Bigras
2010-03-31 14:46 ` Pavel Machek [this message]
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=20100331144629.GB3449@ucw.cz \
--to=pavel@ucw.cz \
--cc=bigras.bruno@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®