Kaynağa Gözat

sctp: remove the unnecessary assignment

When go the right path, the status is 0, no need to assign it again.
So just remove the assignment.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
wangweidong 11 yıl önce
ebeveyn
işleme
abfce3ef58
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  1. 0 1
      net/sctp/protocol.c

+ 0 - 1
net/sctp/protocol.c

@@ -1461,7 +1461,6 @@ static __init int sctp_init(void)
 	if (status)
 		goto err_v6_add_protocol;
 
-	status = 0;
 out:
 	return status;
 err_v6_add_protocol: