aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2013-12-22 23:16:52 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-26 13:47:48 -0500
commitf7010e61442c80333b38aa026a551043a341fb8d (patch)
tree678fc701ba550673b88fb67a72dac1907bd65c1d /net/sctp/input.c
parent26ac8e5fe1562831e68ccd9f7057aade37aab2a3 (diff)
sctp: fix checkpatch errors with indent
fix checkpatch errors below: ERROR: switch and case should be at the same inden ERROR: code indent should use tabs where possible Acked-by: Neil Horman <nhorman@tuxdriver.com> 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.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 44f8793d91df..b67e3d83b48a 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -1056,30 +1056,30 @@ static struct sctp_association *__sctp_rcv_walk_lookup(struct net *net,
1056 break; 1056 break;
1057 1057
1058 switch (ch->type) { 1058 switch (ch->type) {
1059 case SCTP_CID_AUTH: 1059 case SCTP_CID_AUTH:
1060 have_auth = chunk_num; 1060 have_auth = chunk_num;
1061 break; 1061 break;
1062 1062
1063 case SCTP_CID_COOKIE_ECHO: 1063 case SCTP_CID_COOKIE_ECHO:
1064 /* If a packet arrives containing an AUTH chunk as 1064 /* If a packet arrives containing an AUTH chunk as
1065 * a first chunk, a COOKIE-ECHO chunk as the second 1065 * a first chunk, a COOKIE-ECHO chunk as the second
1066 * chunk, and possibly more chunks after them, and 1066 * chunk, and possibly more chunks after them, and
1067 * the receiver does not have an STCB for that 1067 * the receiver does not have an STCB for that
1068 * packet, then authentication is based on 1068 * packet, then authentication is based on
1069 * the contents of the COOKIE- ECHO chunk. 1069 * the contents of the COOKIE- ECHO chunk.
1070 */ 1070 */
1071 if (have_auth == 1 && chunk_num == 2) 1071 if (have_auth == 1 && chunk_num == 2)
1072 return NULL; 1072 return NULL;
1073 break; 1073 break;
1074 1074
1075 case SCTP_CID_ASCONF: 1075 case SCTP_CID_ASCONF:
1076 if (have_auth || net->sctp.addip_noauth) 1076 if (have_auth || net->sctp.addip_noauth)
1077 asoc = __sctp_rcv_asconf_lookup( 1077 asoc = __sctp_rcv_asconf_lookup(
1078 net, ch, laddr, 1078 net, ch, laddr,
1079 sctp_hdr(skb)->source, 1079 sctp_hdr(skb)->source,
1080 transportp); 1080 transportp);
1081 default: 1081 default:
1082 break; 1082 break;
1083 } 1083 }
1084 1084
1085 if (asoc) 1085 if (asoc)