diff mbox

[net-next] sctp: remove the unnecessary assignment

Message ID 52D7976F.7070708@huawei.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

wangweidong Jan. 16, 2014, 8:25 a.m. UTC
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>
---
 net/sctp/protocol.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Neil Horman Jan. 16, 2014, 12:18 p.m. UTC | #1
On Thu, Jan 16, 2014 at 04:25:19PM +0800, Wang Weidong wrote:
> 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>
> ---
>  net/sctp/protocol.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
> index 7c16108..d6934dc 100644
> --- a/net/sctp/protocol.c
> +++ b/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:
> -- 
> 1.7.12
> 
> 
> 
Acked-by: Neil Horman <nhorman@tuxdriver.com>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller Jan. 17, 2014, 1:37 a.m. UTC | #2
From: Wang Weidong <wangweidong1@huawei.com>
Date: Thu, 16 Jan 2014 16:25:19 +0800

> 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>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 7c16108..d6934dc 100644
--- a/net/sctp/protocol.c
+++ b/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: