projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5377265
)
crypto: keywrap - Remove else after break statement
author
Milan Djurovic
<mdjurovic@zohomail.com>
Fri, 26 Mar 2021 18:13:59 +0000
(11:13 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:13 +0000
(18:28 +1100)
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>
crypto/keywrap.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/keywrap.c
b/crypto/keywrap.c
index 3517773bc7f732b06f947c238744d75ae70c7e80..054d9a216fc9f3dbabeecbdd12a28954b1e0fa5e 100644
(file)
--- 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);
}
}