Remove one very strange unneded if.

This commit is contained in:
Alexander Motin 2008-01-27 08:52:41 +00:00
parent 6edc218ea1
commit f704a24b20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175717

View File

@ -631,13 +631,8 @@ export_add(item_p item, struct flow_entry *fle)
struct netflow_v5_header *header = &dgram->header;
struct netflow_v5_record *rec;
if (header->count == 0 ) { /* first record */
rec = &dgram->r[0];
header->count = 1;
} else { /* continue filling datagram */
rec = &dgram->r[header->count];
header->count ++;
}
rec = &dgram->r[header->count];
header->count ++;
KASSERT(header->count <= NETFLOW_V5_MAX_RECORDS,
("ng_netflow: export too big"));