crypto: remove unneeded semicolon
PATCH 1/1 crypto: remove unneeded semicolon
Fixes coccicheck warning:
./include/linux/crypto.h:573:2-3: Unneeded semicolon
Signed-off-by Chen Zhou <[email protected]>
--- include/linux/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/crypto.h +1 -1
@@ -570,7 +570,7 @@ static inline int crypto_wait_req(int err, struct crypto_wait *wait)reinit_completion (&wait->completion); err = wait->err;break ; - }; + }return err; }
Signature · 1 line
2.7.4
Quoted 15 lines · Chen Zhou
Fixes coccicheck warning:
./include/linux/crypto.h:573:2-3: Unneeded semicolon
Signed-off-by Chen Zhou <[email protected]>--- include/linux/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/crypto.h +0
-0
include/linux/crypto.h static inline int crypto_wait_req(int err, struct crypto_wait *wait) · line 576
Quoted 8 lines
include/linux/crypto.h +1
-1@@ -570,7 +570,7 @@ static inline int crypto_wait_req(int err, struct crypto_wait *wait)reinit_completion (&wait->completion); err = wait->err;break ; - }; + }return err; }
As long as you're changing this, perhaps also change the 'switch' to an 'if' and delete the extra blank line? I.e.:
static inline int crypto_wait_req(int err, struct crypto_wait *wait)
{
if (err == -EINPROGRESS || err == -EBUSY) {
wait_for_completion(&wait->completion);
reinit_completion(&wait->completion);
err = wait->err;
}
return err;
}Herbert Xu
maintainerQuoted 8 lines · Chen Zhou
Fixes coccicheck warning:
./include/linux/crypto.h:573:2-3: Unneeded semicolon
Signed-off-by Chen Zhou <[email protected]>--- include/linux/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt