]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove redundant initialization of variable status
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Jul 2020 13:09:19 +0000 (14:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 00:10:13 +0000 (17:10 -0700)
commit40c865dff9269c16b3f30d2a5ad559f3cccc89ab
treeaf41eb1f300e86f618ef7a4cb5d66ba14ca10dd4
parent7a106103de59f9c3d6cdc5f1037bd88a49eab7fd
sctp: remove redundant initialization of variable status

The variable status is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.  Also put the variable declarations into
reverse christmas tree order.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c