OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfc06e1
)
tls: rx: drop pointless else after goto
author
Jakub Kicinski
<kuba@kernel.org>
Fri, 8 Apr 2022 03:38:15 +0000
(20:38 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 8 Apr 2022 10:49:07 +0000
(11:49 +0100)
Pointless else branch after goto makes the code harder to refactor
down the line.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c
patch
|
blob
|
history
diff --git
a/net/tls/tls_sw.c
b/net/tls/tls_sw.c
index
6f943f0
..
e2b9c55
100644
(file)
--- a/
net/tls/tls_sw.c
+++ b/
net/tls/tls_sw.c
@@
-1789,10
+1789,9
@@
int tls_sw_recvmsg(struct sock *sk,
if (err < 0) {
tls_err_abort(sk, err);
goto end;
- } else {
- copied = err;
}
+ copied = err;
if (len <= copied)
goto end;