mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCTP]: More trivial sctp annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
962c837275
commit
9f81bcd942
4 changed files with 12 additions and 12 deletions
|
@ -401,13 +401,14 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map)
|
|||
|
||||
/* Refresh the gap ack information. */
|
||||
if (sctp_tsnmap_has_gap(map)) {
|
||||
__u16 start, end;
|
||||
sctp_tsnmap_iter_init(map, &iter);
|
||||
while (sctp_tsnmap_next_gap_ack(map, &iter,
|
||||
&map->gabs[gabs].start,
|
||||
&map->gabs[gabs].end)) {
|
||||
&start,
|
||||
&end)) {
|
||||
|
||||
map->gabs[gabs].start = htons(map->gabs[gabs].start);
|
||||
map->gabs[gabs].end = htons(map->gabs[gabs].end);
|
||||
map->gabs[gabs].start = htons(start);
|
||||
map->gabs[gabs].end = htons(end);
|
||||
gabs++;
|
||||
if (gabs >= SCTP_MAX_GABS)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue