linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] apei: erst: remove unneeded semicolon
@ 2021-02-02  6:51 Yang Li
  2021-02-05 12:51 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2021-02-02  6:51 UTC (permalink / raw)
  To: keescook
  Cc: anton, ccross, tony.luck, rjw, lenb, james.morse, bp, linux-acpi,
	linux-kernel, Yang Li

Eliminate the following coccicheck warning:
./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/acpi/apei/erst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
index 2e0b0fc..b959721 100644
--- a/drivers/acpi/apei/erst.c
+++ b/drivers/acpi/apei/erst.c
@@ -688,7 +688,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
 			break;
 		if (erst_timedout(&timeout, SPIN_UNIT))
 			return -EIO;
-	};
+	}
 	rc = apei_exec_run(&ctx, ACPI_ERST_GET_COMMAND_STATUS);
 	if (rc)
 		return rc;
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] apei: erst: remove unneeded semicolon
  2021-02-02  6:51 [PATCH] apei: erst: remove unneeded semicolon Yang Li
@ 2021-02-05 12:51 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-02-05 12:51 UTC (permalink / raw)
  To: Yang Li
  Cc: Kees Cook, Anton Vorontsov, Colin Cross, Tony Luck,
	Rafael J. Wysocki, Len Brown, James Morse, Borislav Petkov,
	ACPI Devel Maling List, Linux Kernel Mailing List

On Tue, Feb 2, 2021 at 7:52 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
>
> Eliminate the following coccicheck warning:
> ./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  drivers/acpi/apei/erst.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
> index 2e0b0fc..b959721 100644
> --- a/drivers/acpi/apei/erst.c
> +++ b/drivers/acpi/apei/erst.c
> @@ -688,7 +688,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
>                         break;
>                 if (erst_timedout(&timeout, SPIN_UNIT))
>                         return -EIO;
> -       };
> +       }
>         rc = apei_exec_run(&ctx, ACPI_ERST_GET_COMMAND_STATUS);
>         if (rc)
>                 return rc;
> --

Applied as 5.12 material, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-06  0:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02  6:51 [PATCH] apei: erst: remove unneeded semicolon Yang Li
2021-02-05 12:51 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).