Commit 8d72651d86e9c702d37dd9ef9f084ce027af90a7
Committed by
David S. Miller
1 parent
f7010e6144
Exists in
master
and in
16 other branches
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>
Showing 5 changed files with 9 additions and 10 deletions Side-by-side Diff
net/sctp/auth.c
net/sctp/input.c
... | ... | @@ -180,8 +180,7 @@ |
180 | 180 | * If a frame arrives on an interface and the receiving socket is |
181 | 181 | * bound to another interface, via SO_BINDTODEVICE, treat it as OOTB |
182 | 182 | */ |
183 | - if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) | |
184 | - { | |
183 | + if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) { | |
185 | 184 | if (asoc) { |
186 | 185 | sctp_association_put(asoc); |
187 | 186 | asoc = NULL; |
... | ... | @@ -610,8 +609,7 @@ |
610 | 609 | if (ICMP_FRAG_NEEDED == code) { |
611 | 610 | sctp_icmp_frag_needed(sk, asoc, transport, info); |
612 | 611 | goto out_unlock; |
613 | - } | |
614 | - else { | |
612 | + } else { | |
615 | 613 | if (ICMP_PROT_UNREACH == code) { |
616 | 614 | sctp_icmp_proto_unreachable(sk, asoc, |
617 | 615 | transport); |
net/sctp/protocol.c
... | ... | @@ -1065,8 +1065,8 @@ |
1065 | 1065 | #endif |
1066 | 1066 | }; |
1067 | 1067 | |
1068 | -struct sctp_pf *sctp_get_pf_specific(sa_family_t family) { | |
1069 | - | |
1068 | +struct sctp_pf *sctp_get_pf_specific(sa_family_t family) | |
1069 | +{ | |
1070 | 1070 | switch (family) { |
1071 | 1071 | case PF_INET: |
1072 | 1072 | return sctp_pf_inet_specific; |
net/sctp/socket.c
... | ... | @@ -5443,7 +5443,8 @@ |
5443 | 5443 | return -EFAULT; |
5444 | 5444 | num: |
5445 | 5445 | len = sizeof(struct sctp_authchunks) + num_chunks; |
5446 | - if (put_user(len, optlen)) return -EFAULT; | |
5446 | + if (put_user(len, optlen)) | |
5447 | + return -EFAULT; | |
5447 | 5448 | if (put_user(num_chunks, &p->gauth_number_of_chunks)) |
5448 | 5449 | return -EFAULT; |
5449 | 5450 | return 0; |
net/sctp/ulpqueue.c
... | ... | @@ -336,7 +336,8 @@ |
336 | 336 | pos = f_frag->next; |
337 | 337 | |
338 | 338 | /* Get the last skb in the f_frag's frag_list if present. */ |
339 | - for (last = list; list; last = list, list = list->next); | |
339 | + for (last = list; list; last = list, list = list->next) | |
340 | + ; | |
340 | 341 | |
341 | 342 | /* Add the list of remaining fragments to the first fragments |
342 | 343 | * frag_list. |