Commit 6701f01b authored by Daisy Chang's avatar Daisy Chang Committed by Jon Grimm

Remove excessive spaces.

parent a4cae070
......@@ -911,9 +911,8 @@ sctp_chunk_t *sctp_make_op_error_space(const sctp_association_t *asoc,
if (chunk)
retval->transport = chunk->transport;
nodata:
nodata:
return retval;
}
/* Create an Operation Error chunk. */
......@@ -1438,7 +1437,6 @@ int sctp_verify_init(const sctp_association_t *asoc,
sctpParam_t param;
uint8_t *end;
/* FIXME - Verify the fixed fields of the INIT chunk. Also, verify
* the mandatory parameters somewhere here and generate either the
* "Missing mandatory parameter" error or the "Invalid mandatory
......@@ -1458,8 +1456,6 @@ int sctp_verify_init(const sctp_association_t *asoc,
} /* for (loop through all parameters) */
return 1;
}
......@@ -1503,7 +1499,6 @@ int sctp_verify_param(const sctp_association_t *asoc,
break;
}
return retval;
}
/* RFC 3.2.1 & the Implementers Guide 2.2.
......@@ -1586,7 +1581,6 @@ int sctp_process_unk_param(const sctp_association_t *asoc,
}
return retval;
}
/* Unpack the parameters in an INIT packet.
......
......@@ -240,7 +240,6 @@ sctp_disposition_t sctp_sf_do_5_1B_init(const sctp_endpoint_t *ep,
return sctp_sf_tabort_8_4_8(ep, asoc, type, arg,
commands);
}
}
/* Grab the INIT header. */
......@@ -2523,7 +2522,6 @@ sctp_disposition_t sctp_sf_tabort_8_4_8(const sctp_endpoint_t *ep,
sctp_chunk_t *chunk = arg;
sctp_chunk_t *abort;
packet = sctp_ootb_pkt_new(asoc, chunk);
if (packet) {
......@@ -2548,7 +2546,6 @@ sctp_disposition_t sctp_sf_tabort_8_4_8(const sctp_endpoint_t *ep,
}
return SCTP_DISPOSITION_NOMEM;
}
/*
......@@ -2728,7 +2725,6 @@ sctp_disposition_t sctp_sf_shut_8_4_5(const sctp_endpoint_t *ep,
sctp_chunk_t *chunk = arg;
sctp_chunk_t *shut;
packet = sctp_ootb_pkt_new(asoc, chunk);
if (packet) {
......@@ -2753,8 +2749,8 @@ sctp_disposition_t sctp_sf_shut_8_4_5(const sctp_endpoint_t *ep,
}
return SCTP_DISPOSITION_NOMEM;
}
/*
* Process an unknown chunk.
*
......@@ -4103,7 +4099,6 @@ sctp_packet_t *sctp_abort_pkt_new(const sctp_endpoint_t *ep,
sctp_packet_t *packet;
sctp_chunk_t *abort;
packet = sctp_ootb_pkt_new(asoc, chunk);
if (packet) {
......@@ -4128,7 +4123,6 @@ sctp_packet_t *sctp_abort_pkt_new(const sctp_endpoint_t *ep,
}
return packet;
}
/* Allocate a packet for responding in the OOTB conditions. */
......@@ -4141,7 +4135,6 @@ sctp_packet_t *sctp_ootb_pkt_new(const sctp_association_t *asoc,
__u16 dport;
__u32 vtag;
/* Get the source and destination port from the inbound packet. */
sport = ntohs(chunk->sctp_hdr->dest);
dport = ntohs(chunk->sctp_hdr->source);
......@@ -4175,14 +4168,11 @@ sctp_packet_t *sctp_ootb_pkt_new(const sctp_association_t *asoc,
sctp_transport_free(transport);
nomem:
return NULL;
}
/* Free the packet allocated earlier for responding in the OOTB condition. */
void sctp_ootb_pkt_free(sctp_packet_t *packet)
{
sctp_transport_free(packet->transport);
sctp_packet_free(packet);
}
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