2019-11-06 00:54:05

by tiantao (H)

[permalink] [raw]
Subject: [PATCH] crypto: tgr192 remove unneeded semicolon

Fix the warning below.
./crypto/tgr192.c:558:43-44: Unneeded semicolon
./crypto/tgr192.c:586:44-45: Unneeded semicolon

Fixes: f63fbd3d501b ("crypto: tgr192 - Switch to shash")

Signed-off-by: Tian Tao <[email protected]>
---
crypto/tgr192.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/tgr192.c b/crypto/tgr192.c
index 052648e..aa29c52 100644
--- a/crypto/tgr192.c
+++ b/crypto/tgr192.c
@@ -555,7 +555,7 @@ static int tgr192_final(struct shash_desc *desc, u8 * out)
__le32 *le32p;
u32 t, msb, lsb;

- tgr192_update(desc, NULL, 0); /* flush */ ;
+ tgr192_update(desc, NULL, 0); /* flush */

msb = 0;
t = tctx->nblocks;
@@ -583,7 +583,7 @@ static int tgr192_final(struct shash_desc *desc, u8 * out)
while (tctx->count < 64) {
tctx->hash[tctx->count++] = 0;
}
- tgr192_update(desc, NULL, 0); /* flush */ ;
+ tgr192_update(desc, NULL, 0); /* flush */
memset(tctx->hash, 0, 56); /* fill next block with zeroes */
}
/* append the 64 bit count */
--
2.7.4


2019-11-15 06:06:52

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: tgr192 remove unneeded semicolon

On Wed, Nov 06, 2019 at 08:53:41AM +0800, Tian Tao wrote:
> Fix the warning below.
> ./crypto/tgr192.c:558:43-44: Unneeded semicolon
> ./crypto/tgr192.c:586:44-45: Unneeded semicolon
>
> Fixes: f63fbd3d501b ("crypto: tgr192 - Switch to shash")
>
> Signed-off-by: Tian Tao <[email protected]>
> ---
> crypto/tgr192.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

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