summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-02-17 17:52:46 +0000
committertuexen <tuexen@FreeBSD.org>2016-02-17 17:52:46 +0000
commitf343bce6be4a750ea6c0678079138544e71654be (patch)
treecf1e47aa2df4a1dd118c357af5bd6f1baab1723b /sys/netinet
parent0bfb5dbc867a4ef73b0b2259adfd285a1cbaf5d2 (diff)
downloadFreeBSD-src-f343bce6be4a750ea6c0678079138544e71654be.zip
FreeBSD-src-f343bce6be4a750ea6c0678079138544e71654be.tar.gz
Address a warning reported by D5245 / PVS.
MFC after: 3 days
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 0172610..39cd388 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -10613,7 +10613,7 @@ sctp_send_sack(struct sctp_tcb *stcb, int so_locked
* Clear all bits corresponding to TSNs
* smaller or equal to the cumulative TSN.
*/
- tsn_map &= (~0 << (1 - offset));
+ tsn_map &= (~0U << (1 - offset));
}
selector = &sack_array[tsn_map];
if (mergeable && selector->right_edge) {
@@ -10688,7 +10688,7 @@ sctp_send_sack(struct sctp_tcb *stcb, int so_locked
* TSNs smaller or equal to the
* cumulative TSN.
*/
- tsn_map &= (~0 << (1 - offset));
+ tsn_map &= (~0U << (1 - offset));
}
selector = &sack_array[tsn_map];
if (mergeable && selector->right_edge) {
OpenPOWER on IntegriCloud