From: Aaron Lu <aaron.lwe@gmail.com>
To: Yijing Wang <wangyijing@huawei.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Jean Delvare <khali@linux-fr.org>,
Guenter Roeck <linux@roeck-us.net>,
Hanjun Guo <guohanjun@huawei.com>, Tejun Heo <tj@kernel.org>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH 3/4] ata: Fix acpi_bus_get_device() return value check
Date: Thu, 21 Nov 2013 16:30:25 +0800 [thread overview]
Message-ID: <528DC4A1.9070702@gmail.com> (raw)
In-Reply-To: <1384939706-6292-4-git-send-email-wangyijing@huawei.com>
On 11/20/2013 05:28 PM, Yijing Wang wrote:
> Since acpi_bus_get_device() returns plain int and not acpi_status,
> ACPI_FAILURE() should not be used for checking its return value. Fix
> that.
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: linux-ide@vger.kernel.org
Acked-by: Aaron Lu <aaron.lu@intel.com>
Thanks,
Aaron
> ---
> drivers/ata/libata-zpodd.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ata/libata-zpodd.c b/drivers/ata/libata-zpodd.c
> index 68f9e32..3d9f82d 100644
> --- a/drivers/ata/libata-zpodd.c
> +++ b/drivers/ata/libata-zpodd.c
> @@ -95,8 +95,7 @@ static bool odd_can_poweroff(struct ata_device *ata_dev)
> if (!handle)
> return false;
>
> - status = acpi_bus_get_device(handle, &acpi_dev);
> - if (ACPI_FAILURE(status))
> + if (acpi_bus_get_device(handle, &acpi_dev))
> return false;
>
> return acpi_device_can_poweroff(acpi_dev);
>
next prev parent reply other threads:[~2013-11-21 8:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1384939706-6292-1-git-send-email-wangyijing@huawei.com>
2013-11-20 9:28 ` [PATCH 3/4] ata: Fix acpi_bus_get_device() return value check Yijing Wang
2013-11-21 8:30 ` Aaron Lu [this message]
2013-11-22 22:39 ` Tejun Heo
2013-11-25 1:34 ` Yijing Wang
2013-11-25 15:58 ` Tejun Heo
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=528DC4A1.9070702@gmail.com \
--to=aaron.lwe@gmail.com \
--cc=bhelgaas@google.com \
--cc=guohanjun@huawei.com \
--cc=khali@linux-fr.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=rjw@rjwysocki.net \
--cc=tj@kernel.org \
--cc=wangyijing@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.