diff options
-rw-r--r-- | net/dccp/options.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c index d87d6be7ab10..85a86bd61f44 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c | |||
@@ -293,10 +293,7 @@ static void dccp_insert_option_ndp(struct sock *sk, struct sk_buff *skb) | |||
293 | 293 | ||
294 | static inline int dccp_elapsed_time_len(const u32 elapsed_time) | 294 | static inline int dccp_elapsed_time_len(const u32 elapsed_time) |
295 | { | 295 | { |
296 | return elapsed_time == 0 ? 0 : | 296 | return elapsed_time == 0 ? 0 : elapsed_time <= 0xFFFF ? 2 : 4; |
297 | elapsed_time <= 0xFF ? 1 : | ||
298 | elapsed_time <= 0xFFFF ? 2 : | ||
299 | elapsed_time <= 0xFFFFFF ? 3 : 4; | ||
300 | } | 297 | } |
301 | 298 | ||
302 | void dccp_insert_option_elapsed_time(struct sock *sk, | 299 | void dccp_insert_option_elapsed_time(struct sock *sk, |