* [PATCH] crypto: keywrap: Remove else after break statement
@ 2021-03-26 18:13 Milan Djurovic
2021-04-02 9:48 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Milan Djurovic @ 2021-03-26 18:13 UTC (permalink / raw)
To: herbert, davem; +Cc: linux-crypto, Milan Djurovic
Remove the else because the if statement has a break statement. Fix the
checkpatch.pl warning.
Signed-off-by: Milan Djurovic <mdjurovic@zohomail.com>
---
crypto/keywrap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/keywrap.c b/crypto/keywrap.c
index 3517773bc7f7..054d9a216fc9 100644
--- a/crypto/keywrap.c
+++ b/crypto/keywrap.c
@@ -114,9 +114,9 @@ static void crypto_kw_scatterlist_ff(struct scatter_walk *walk,
scatterwalk_start(walk, sg);
scatterwalk_advance(walk, skip);
break;
- } else
- skip -= sg->length;
+ }
+ skip -= sg->length;
sg = sg_next(sg);
}
}
--
2.31.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: keywrap: Remove else after break statement
2021-03-26 18:13 [PATCH] crypto: keywrap: Remove else after break statement Milan Djurovic
@ 2021-04-02 9:48 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-04-02 9:48 UTC (permalink / raw)
To: Milan Djurovic; +Cc: davem, linux-crypto
On Fri, Mar 26, 2021 at 11:13:59AM -0700, Milan Djurovic wrote:
> Remove the else because the if statement has a break statement. Fix the
> checkpatch.pl warning.
>
> Signed-off-by: Milan Djurovic <mdjurovic@zohomail.com>
> ---
> crypto/keywrap.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-02 9:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 18:13 [PATCH] crypto: keywrap: Remove else after break statement Milan Djurovic
2021-04-02 9:48 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.