Commit 623b57be authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a65878d6
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1367,15 +1367,15 @@ static struct pernet_operations sctp_ctrlsock_ops = {
/* Initialize the universe into something sensible.  */
static __init int sctp_init(void)
{
	int i;
	int status = -EINVAL;
	unsigned long goal;
	unsigned long limit;
	unsigned long nr_pages = totalram_pages();
	unsigned long limit;
	unsigned long goal;
	int max_entry_order;
	int num_entries;
	int max_share;
	int status;
	int order;
	int num_entries;
	int max_entry_order;
	int i;

	sock_skb_cb_check_size(sizeof(struct sctp_ulpevent));