author: Milan Djurovic <mdjurovic@zohomail.com> 2021-03-26 11:13:59 -0700
committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-04-02 18:28:13 +1100
commit: c29da9700f8ce19175a37e6a79dbd49f98625bfd
parent: 5377265f54dedc01db1eb4325f65c7a6a4035ec0
Commit Summary:
Diffstat:
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);
}
}