summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMilan Djurovic <mdjurovic@zohomail.com>2021-03-26 11:13:59 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-02 18:28:13 +1100
commitc29da9700f8ce19175a37e6a79dbd49f98625bfd (patch)
treecf2708b944d4187fc702a97092bd1632f57829b3 /crypto
parent5377265f54dedc01db1eb4325f65c7a6a4035ec0 (diff)
crypto: keywrap - Remove else after break statement
Remove the else because the if statement has a break statement. Fix the checkpatch.pl warning. Signed-off-by: Milan Djurovic <mdjurovic@zohomail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/keywrap.c4
1 files 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);
}
}