Fix Dead Store (Dead assignement/Dead increment) warning found by Clang Analyzer

This commit is contained in:
Alexis La Goutte 2014-04-30 09:01:00 +02:00 committed by Tatsuhiro Tsujikawa
parent e00b8f1f73
commit eff5c7d0d0
1 changed files with 0 additions and 3 deletions

View File

@ -2409,7 +2409,6 @@ ssize_t nghttp2_session_mem_send(nghttp2_session *session,
rv = nghttp2_session_prep_frame(session, item); rv = nghttp2_session_prep_frame(session, item);
if(rv == NGHTTP2_ERR_DEFERRED) { if(rv == NGHTTP2_ERR_DEFERRED) {
DEBUGF(fprintf(stderr, "send: frame transmission deferred\n")); DEBUGF(fprintf(stderr, "send: frame transmission deferred\n"));
rv = 0;
break; break;
} }
if(rv < 0) { if(rv < 0) {
@ -2448,7 +2447,6 @@ ssize_t nghttp2_session_mem_send(nghttp2_session *session,
if(nghttp2_is_fatal(rv)) { if(nghttp2_is_fatal(rv)) {
return rv; return rv;
} }
rv = 0;
break; break;
} }
@ -4380,7 +4378,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
break; break;
} }
case NGHTTP2_HEADERS: case NGHTTP2_HEADERS:
pri_fieldlen = 0;
DEBUGF(fprintf(stderr, "recv: HEADERS\n")); DEBUGF(fprintf(stderr, "recv: HEADERS\n"));