2021-12-21 00:38:34

by Yang Li

[permalink] [raw]
Subject: [PATCH -next] crypto: ccp: remove unneeded semicolon

Eliminate the following coccicheck warning:
./drivers/crypto/ccp/sev-dev.c:263:2-3: Unneeded semicolon

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
---
drivers/crypto/ccp/sev-dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c
index 991cc5aaaa0f..8fd774a10edc 100644
--- a/drivers/crypto/ccp/sev-dev.c
+++ b/drivers/crypto/ccp/sev-dev.c
@@ -260,7 +260,7 @@ static void sev_write_init_ex_file_if_required(int cmd_id)
break;
default:
return;
- };
+ }

sev_write_init_ex_file();
}
--
2.20.1.7.g153144c



2021-12-31 11:34:57

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH -next] crypto: ccp: remove unneeded semicolon

On Tue, Dec 21, 2021 at 08:38:28AM +0800, Yang Li wrote:
> Eliminate the following coccicheck warning:
> ./drivers/crypto/ccp/sev-dev.c:263:2-3: Unneeded semicolon
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Yang Li <[email protected]>
> ---
> drivers/crypto/ccp/sev-dev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt