From: Lekensteyn <lekensteyn@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: lenb@linux.intel.com, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] acpi: compare of array
Date: Sun, 28 Oct 2012 16:44:28 +0100 [thread overview]
Message-ID: <1465966.Qjvnc1PAsU@al> (raw)
In-Reply-To: <20121025145746.17558.59853.stgit@localhost.localdomain>
On Thursday 25 October 2012 15:57:50 Alan Cox wrote:
> From: Alan Cox <alan@linux.intel.com>
>
> This serves no purpose as it's an array not a pointer
>
> Signed-off-by: Alan Cox <alan@linux.intel.com>
> ---
>
> drivers/acpi/event.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c
> index 1442737..f84df83 100644
> --- a/drivers/acpi/event.c
> +++ b/drivers/acpi/event.c
> @@ -67,8 +67,7 @@ acpi_system_read_event(struct file *file, char __user *
> buffer, size_t count, return result;
>
> chars_remaining = sprintf(str, "%s %s %08x %08x\n",
> - event.device_class ? event.
> - device_class : "<unknown>",
> + event.device_class : "<unknown>",
: "<unknown>" should be removed too to avoid a compile error. If it is an
array, is it not better to check event.device_class[0] != 0 (an empty string)?
> event.bus_id ? event.
> bus_id : "<unknown>", event.type,
> event.data);
Regards,
Peter
prev parent reply other threads:[~2012-10-28 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 14:57 [PATCH] acpi: compare of array Alan Cox
2012-10-28 15:44 ` Lekensteyn [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=1465966.Qjvnc1PAsU@al \
--to=lekensteyn@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=lenb@linux.intel.com \
--cc=linux-acpi@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