diff options
Diffstat (limited to 'net/x25/x25_facilities.c')
-rw-r--r-- | net/x25/x25_facilities.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/x25/x25_facilities.c b/net/x25/x25_facilities.c index dec404afa113..a21f6646eb3a 100644 --- a/net/x25/x25_facilities.c +++ b/net/x25/x25_facilities.c | |||
@@ -205,9 +205,7 @@ int x25_create_facilities(unsigned char *buffer, | |||
205 | } | 205 | } |
206 | 206 | ||
207 | if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) { | 207 | if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) { |
208 | unsigned bytecount = (dte_facs->calling_len % 2) ? | 208 | unsigned bytecount = (dte_facs->calling_len + 1) >> 1; |
209 | dte_facs->calling_len / 2 + 1 : | ||
210 | dte_facs->calling_len / 2; | ||
211 | *p++ = X25_FAC_CALLING_AE; | 209 | *p++ = X25_FAC_CALLING_AE; |
212 | *p++ = 1 + bytecount; | 210 | *p++ = 1 + bytecount; |
213 | *p++ = dte_facs->calling_len; | 211 | *p++ = dte_facs->calling_len; |