Skip to contentSkip to conversation

sctp: remove the unnecessary assignment

PATCH Applied Wang Weidong 3 participants 3 messages Jan 16, 2014 – Jan 17, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 net/sctp/protocol.c | 1 -
 1 file changed, 1 deletion(-)
net/sctp/protocol.c +0 -1
index 7c16108..d6934dc 100644
@@ -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 on v1 1/1
#1 lore raw
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.

---
 net/sctp/protocol.c | 1 -
 1 file changed, 1 deletion(-)
net/sctp/protocol.c +0 -1
index 7c16108..d6934dc 100644
@@ -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