projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d43470
)
soreuseport: Cleanup duplicate initialization of more_reuse->max_socks.
author
Kuniyuki Iwashima
<kuniyu@amazon.co.jp>
Sat, 25 Jan 2020 10:41:02 +0000
(10:41 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Jan 2020 10:01:16 +0000
(11:01 +0100)
reuseport_grow() does not need to initialize the more_reuse->max_socks
again. It is already initialized in __reuseport_alloc().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_reuseport.c
patch
|
blob
|
history
diff --git
a/net/core/sock_reuseport.c
b/net/core/sock_reuseport.c
index f19f179538b9b64900d75784dad1ee77a325e44a..91e9f2223c39ca53cc7d075fcff6ff02f00aa123 100644
(file)
--- a/
net/core/sock_reuseport.c
+++ b/
net/core/sock_reuseport.c
@@
-107,7
+107,6
@@
static struct sock_reuseport *reuseport_grow(struct sock_reuseport *reuse)
if (!more_reuse)
return NULL;
- more_reuse->max_socks = more_socks_size;
more_reuse->num_socks = reuse->num_socks;
more_reuse->prog = reuse->prog;
more_reuse->reuseport_id = reuse->reuseport_id;