Commit 07868284 authored by Marcelo Ricardo Leitner's avatar Marcelo Ricardo Leitner Committed by David S. Miller

sctp: reduce indent level on sctp_v4_get_dst

Paves the day for the next patch. Functionality stays untouched.
Signed-off-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7177a3b0
...@@ -489,8 +489,10 @@ static void sctp_v4_get_dst(struct sctp_transport *t, union sctp_addr *saddr, ...@@ -489,8 +489,10 @@ static void sctp_v4_get_dst(struct sctp_transport *t, union sctp_addr *saddr,
list_for_each_entry_rcu(laddr, &bp->address_list, list) { list_for_each_entry_rcu(laddr, &bp->address_list, list) {
if (!laddr->valid) if (!laddr->valid)
continue; continue;
if ((laddr->state == SCTP_ADDR_SRC) && if (laddr->state != SCTP_ADDR_SRC ||
(AF_INET == laddr->a.sa.sa_family)) { AF_INET != laddr->a.sa.sa_family)
continue;
fl4->fl4_sport = laddr->a.v4.sin_port; fl4->fl4_sport = laddr->a.v4.sin_port;
flowi4_update_output(fl4, flowi4_update_output(fl4,
asoc->base.sk->sk_bound_dev_if, asoc->base.sk->sk_bound_dev_if,
...@@ -499,11 +501,11 @@ static void sctp_v4_get_dst(struct sctp_transport *t, union sctp_addr *saddr, ...@@ -499,11 +501,11 @@ static void sctp_v4_get_dst(struct sctp_transport *t, union sctp_addr *saddr,
laddr->a.v4.sin_addr.s_addr); laddr->a.v4.sin_addr.s_addr);
rt = ip_route_output_key(sock_net(sk), fl4); rt = ip_route_output_key(sock_net(sk), fl4);
if (!IS_ERR(rt)) { if (IS_ERR(rt))
continue;
dst = &rt->dst; dst = &rt->dst;
goto out_unlock; break;
}
}
} }
out_unlock: out_unlock:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment