sctp: remove the unnecessary assignment
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/sctp/protocol.c | 1 - 1 file changed, 1 deletion(-)
net/sctp/protocol.c +0 -1
@@ -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:
Signature · 1 line
1.7.12
Quoted 25 lines · Wang Weidong
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 <[email protected]>--- net/sctp/protocol.c | 1 - 1 file changed, 1 deletion(-)net/sctp/protocol.c +0
-1@@ -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:Signature · 1 line
1.7.12
Acked-by Neil Horman <[email protected]>
From: Wang Weidong <[email protected]>
Date: Thu, 16 Jan 2014 16:25:19 +0800
Quoted 4 lines
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 <[email protected]>
Applied, thank you.