summaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorwangweidong2013-12-23 05:16:53 +0100
committerDavid S. Miller2013-12-26 19:47:48 +0100
commit8d72651d86e9c702d37dd9ef9f084ce027af90a7 (patch)
tree7e5406d0de3cdc025e2c892bd7addb3e54732959 /net/sctp/input.c
parentsctp: fix checkpatch errors with indent (diff)
downloadkernel-qcow2-linux-8d72651d86e9c702d37dd9ef9f084ce027af90a7.tar.gz
kernel-qcow2-linux-8d72651d86e9c702d37dd9ef9f084ce027af90a7.tar.xz
kernel-qcow2-linux-8d72651d86e9c702d37dd9ef9f084ce027af90a7.zip
sctp: fix checkpatch errors with open brace '{' and trailing statements
fix checkpatch errors below: ERROR: that open brace { should be on the previous line ERROR: open brace '{' following function declarations go on the next line ERROR: trailing statements should be on next line Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index b67e3d83b48a..1f4eeb43fbd6 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -180,8 +180,7 @@ int sctp_rcv(struct sk_buff *skb)
* If a frame arrives on an interface and the receiving socket is
* bound to another interface, via SO_BINDTODEVICE, treat it as OOTB
*/
- if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb)))
- {
+ if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) {
if (asoc) {
sctp_association_put(asoc);
asoc = NULL;
@@ -610,8 +609,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
if (ICMP_FRAG_NEEDED == code) {
sctp_icmp_frag_needed(sk, asoc, transport, info);
goto out_unlock;
- }
- else {
+ } else {
if (ICMP_PROT_UNREACH == code) {
sctp_icmp_proto_unreachable(sk, asoc,
transport);