Simplify
This commit is contained in:
parent
ba671a8473
commit
0c70ff5658
|
@ -2556,6 +2556,8 @@ static int session_after_frame_sent2(nghttp2_session *session) {
|
|||
nghttp2_bufs *framebufs = &aob->framebufs;
|
||||
nghttp2_frame *frame;
|
||||
nghttp2_mem *mem;
|
||||
nghttp2_stream *stream;
|
||||
nghttp2_data_aux_data *aux_data;
|
||||
|
||||
mem = &session->mem;
|
||||
frame = &item->frame;
|
||||
|
@ -2578,9 +2580,9 @@ static int session_after_frame_sent2(nghttp2_session *session) {
|
|||
active_outbound_item_reset(&session->aob, mem);
|
||||
|
||||
return 0;
|
||||
} else {
|
||||
nghttp2_stream *stream;
|
||||
nghttp2_data_aux_data *aux_data;
|
||||
}
|
||||
|
||||
/* DATA frame */
|
||||
|
||||
aux_data = &item->aux_data.data;
|
||||
|
||||
|
@ -2618,10 +2620,6 @@ static int session_after_frame_sent2(nghttp2_session *session) {
|
|||
aob->item = NULL;
|
||||
active_outbound_item_reset(&session->aob, mem);
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* Unreachable */
|
||||
assert(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue