From 499a5a8c980cf6f88f9e6d278d32aae67738fa32 Mon Sep 17 00:00:00 2001 From: Aomx <julian.cordes@gmail.com> Date: Tue, 15 Sep 2015 23:23:06 +0200 Subject: [PATCH] style adjustments --- gtests/net/packetdrill/sctp_packet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtests/net/packetdrill/sctp_packet.c b/gtests/net/packetdrill/sctp_packet.c index 7f87a869..40b44dba 100644 --- a/gtests/net/packetdrill/sctp_packet.c +++ b/gtests/net/packetdrill/sctp_packet.c @@ -945,7 +945,7 @@ sctp_cookie_echo_chunk_new(s64 flgs, s64 len, struct sctp_byte_list *cookie) struct sctp_byte_list_item *item; u32 flags; u16 chunk_length, cookie_length, padding_length, i; - + assert((len == -1) || (is_valid_u16(len) && len >= sizeof(struct sctp_cookie_echo_chunk))); @@ -979,7 +979,6 @@ sctp_cookie_echo_chunk_new(s64 flgs, s64 len, struct sctp_byte_list *cookie) i++, item = item->next) { chunk->cookie[i] = item->byte; } - //memcpy(chunk->cookie, cookie, cookie_length); } else { flags |= FLAG_CHUNK_VALUE_NOCHECK; memset(chunk->cookie, 'A', cookie_length); -- GitLab