From 9de9b6ebd657391e1173f0b3b82c57ec2643e03d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 22 Jul 2014 01:52:51 +0900 Subject: [PATCH] Remove unnecessarily code --- lib/nghttp2_hd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 9f3f38a3..3f1340e7 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -541,10 +541,7 @@ static uint8_t* decode_length(ssize_t *res, size_t *shift_ptr, int *final, *res = n; return in; } - if(*in & (1 << 7)) { - *res = -1; - return in + 1; - } + *res = n; *final = 1; return in + 1;