Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soreuseport: Cleanup duplicate initialization of more_reuse->max_socks.

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>

authored by

Kuniyuki Iwashima and committed by
David S. Miller
cd94ef06 4d434705

-1
-1
net/core/sock_reuseport.c
··· 107 107 if (!more_reuse) 108 108 return NULL; 109 109 110 - more_reuse->max_socks = more_socks_size; 111 110 more_reuse->num_socks = reuse->num_socks; 112 111 more_reuse->prog = reuse->prog; 113 112 more_reuse->reuseport_id = reuse->reuseport_id;