net: tcp: Remove redundant initialization of variable len
authorColin Ian King <colin.i.king@gmail.com>
Fri, 16 Feb 2024 12:54:43 +0000 (12:54 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 Feb 2024 10:40:15 +0000 (11:40 +0100)
commit465c1abcb64426f0ff39e80e508e2432672c2dae
tree1042e229b27bfd289cfb4b48ce7761b40b34bad2
parentbb18fc7a521b41bfee201643f65d7b74bc6b901f
net: tcp: Remove redundant initialization of variable len

The variable len being initialized with a value that is never read, an
if statement is initializing it in both paths of the if statement.
The initialization is redundant and can be removed.

Cleans up clang scan build warning:
net/ipv4/tcp_ao.c:512:11: warning: Value stored to 'len' during its
initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://lore.kernel.org/r/20240216125443.2107244-1-colin.i.king@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/tcp_ao.c