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_bufs *framebufs = &aob->framebufs;
|
||||||
nghttp2_frame *frame;
|
nghttp2_frame *frame;
|
||||||
nghttp2_mem *mem;
|
nghttp2_mem *mem;
|
||||||
|
nghttp2_stream *stream;
|
||||||
|
nghttp2_data_aux_data *aux_data;
|
||||||
|
|
||||||
mem = &session->mem;
|
mem = &session->mem;
|
||||||
frame = &item->frame;
|
frame = &item->frame;
|
||||||
|
@ -2578,9 +2580,9 @@ static int session_after_frame_sent2(nghttp2_session *session) {
|
||||||
active_outbound_item_reset(&session->aob, mem);
|
active_outbound_item_reset(&session->aob, mem);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
}
|
||||||
nghttp2_stream *stream;
|
|
||||||
nghttp2_data_aux_data *aux_data;
|
/* DATA frame */
|
||||||
|
|
||||||
aux_data = &item->aux_data.data;
|
aux_data = &item->aux_data.data;
|
||||||
|
|
||||||
|
@ -2620,10 +2622,6 @@ static int session_after_frame_sent2(nghttp2_session *session) {
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Unreachable */
|
|
||||||
assert(0);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int session_call_send_data(nghttp2_session *session,
|
static int session_call_send_data(nghttp2_session *session,
|
||||||
nghttp2_outbound_item *item,
|
nghttp2_outbound_item *item,
|
||||||
|
|
Loading…
Reference in New Issue