From: Milan Djurovic Date: Fri, 26 Mar 2021 18:13:59 +0000 (-0700) Subject: crypto: keywrap - Remove else after break statement X-Git-Tag: v5.13-rc1~200^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c29da9700f8ce19175a37e6a79dbd49f98625bfd;p=thirdparty%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/keywrap.c b/crypto/keywrap.c index 3517773bc7f73..054d9a216fc9f 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); } }