From: Hans de Goede <hdegoede@redhat.com>
To: Zhang Qilong <zhangqilong3@huawei.com>, mgross@linux.intel.com
Cc: platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH -next] platform/x86: wmi: discard unnecessary breaks
Date: Wed, 28 Oct 2020 12:36:16 +0100 [thread overview]
Message-ID: <d70fb286-889e-aec7-6ab5-371af8a5ddf2@redhat.com> (raw)
In-Reply-To: <20201027135302.72354-1-zhangqilong3@huawei.com>
Hi,
On 10/27/20 2:53 PM, Zhang Qilong wrote:
> The 'break' is unnecessary because of previous 'return',
> and we could discard it.
>
> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Thank you for your patch. A patch making the same changes
was already submitted a bit earlier and has been accepted:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=619821936203f0577aa88cf30d31b0202650a745
So I'm dropping this patch, as this has already been
fixed / cleaned up.
Regards,
Hans
> ---
> drivers/platform/x86/wmi.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
> index d88f388a3450..cbf38abd40be 100644
> --- a/drivers/platform/x86/wmi.c
> +++ b/drivers/platform/x86/wmi.c
> @@ -1260,13 +1260,13 @@ acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,
> switch (result) {
> case -EINVAL:
> return AE_BAD_PARAMETER;
> - break;
> +
> case -ENODEV:
> return AE_NOT_FOUND;
> - break;
> +
> case -ETIME:
> return AE_TIME;
> - break;
> +
> default:
> return AE_OK;
> }
>
prev parent reply other threads:[~2020-10-29 2:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-27 13:53 [PATCH -next] platform/x86: wmi: discard unnecessary breaks Zhang Qilong
2020-10-28 11:36 ` Hans de Goede [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=d70fb286-889e-aec7-6ab5-371af8a5ddf2@redhat.com \
--to=hdegoede@redhat.com \
--cc=mgross@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=zhangqilong3@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox