Message ID | 20210326181359.97406-1-mdjurovic@zohomail.com |
---|---|
State | Accepted |
Commit | c29da9700f8ce19175a37e6a79dbd49f98625bfd |
Headers | show |
Series | crypto: keywrap: Remove else after break statement | expand |
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
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); } }
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(-)