[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <00c331bb-17ec-89c0-6dd0-ffe2933df07b@redhat.com>
Date: Fri, 21 May 2021 11:49:42 +0200
From: Hans de Goede <hdegoede@...hat.com>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>, hmh@....eng.br
Cc: mgross@...ux.intel.com, jdelvare@...e.com, linux@...ck-us.net,
ibm-acpi-devel@...ts.sourceforge.net,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hwmon@...r.kernel.org
Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Fix inconsistent indenting
Hi,
On 5/21/21 11:38 AM, Jiapeng Chong wrote:
> Eliminate the follow smatch warning:
>
> drivers/platform/x86/thinkpad_acpi.c:7942 volume_write() warn:
> inconsistent indenting.
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
> ---
> drivers/platform/x86/thinkpad_acpi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index dd60c93..d0aa566 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -7939,7 +7939,7 @@ static int volume_write(char *buf)
> } else if (sscanf(cmd, "level %u", &l) == 1 &&
> l >= 0 && l <= TP_EC_VOLUME_MAX) {
> new_level = l;
> - continue;
> + continue;
> }
> }
> if (strlencmp(cmd, "mute") == 0)
Thank you for your patch, but actually the indentation of the "new_level = l;"
is wrong, it is indented one level too much.
Please send a new version changing (reducing) the indentation of the
"new_level = l;" statement instead.
Regards,
Hans
Powered by blists - more mailing lists