diff options
Diffstat (limited to 'net/llc/llc_c_ac.c')
-rw-r--r-- | net/llc/llc_c_ac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/llc/llc_c_ac.c b/net/llc/llc_c_ac.c index 91fb6bc1b116..8169f24ed33e 100644 --- a/net/llc/llc_c_ac.c +++ b/net/llc/llc_c_ac.c | |||
@@ -995,8 +995,8 @@ static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb) | |||
995 | llc->dec_step = 0; | 995 | llc->dec_step = 0; |
996 | llc->dec_cntr = llc->inc_cntr = 2; | 996 | llc->dec_cntr = llc->inc_cntr = 2; |
997 | ++llc->npta; | 997 | ++llc->npta; |
998 | if (llc->npta > ~LLC_2_SEQ_NBR_MODULO) | 998 | if (llc->npta > (u8) ~LLC_2_SEQ_NBR_MODULO) |
999 | llc->npta = ~LLC_2_SEQ_NBR_MODULO ; | 999 | llc->npta = (u8) ~LLC_2_SEQ_NBR_MODULO; |
1000 | } else | 1000 | } else |
1001 | --llc->inc_cntr; | 1001 | --llc->inc_cntr; |
1002 | return 0; | 1002 | return 0; |
@@ -1086,8 +1086,8 @@ int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb) | |||
1086 | struct llc_sock *llc = llc_sk(sk); | 1086 | struct llc_sock *llc = llc_sk(sk); |
1087 | 1087 | ||
1088 | llc->k += 1; | 1088 | llc->k += 1; |
1089 | if (llc->k > ~LLC_2_SEQ_NBR_MODULO) | 1089 | if (llc->k > (u8) ~LLC_2_SEQ_NBR_MODULO) |
1090 | llc->k = ~LLC_2_SEQ_NBR_MODULO ; | 1090 | llc->k = (u8) ~LLC_2_SEQ_NBR_MODULO; |
1091 | return 0; | 1091 | return 0; |
1092 | } | 1092 | } |
1093 | 1093 | ||