Skip to contentSkip to conversation

sctp: Remove store to ret as it is not used

PATCH New Holger Freyther 1 participant 1 message Jan 18, 2011

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

PATCH 1/1 sctp: Remove store to ret as it is not used

The store to ret is not needed. In case it is 0 the method will be exited directly, if not ret will be assigned again and then returned to the caller.

---
 net/sctp/socket.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/sctp/socket.c +0 -0
index e47e39e..86ce53d 100644
@@ -393,9 +393,8 @@ SCTP_STATIC int sctp_do_bind(struct sock *sk, union

sctp_addr *addr, int len)
* detection.
*/
addr->v4.sin_port = htons(snum);
- if ((ret = sctp_get_port_local(sk, addr))) {
+ if (sctp_get_port_local(sk, addr))
return -EADDRINUSE;
- }
/* Refresh ephemeral port. */
if (!bp->port)

Signature · 1 line
1.7.3.4