Remove unnecessary assignment to item->cycle
This commit is contained in:
parent
c8f67788e0
commit
42b2430fe1
|
@ -707,8 +707,6 @@ int nghttp2_session_add_item(nghttp2_session *session,
|
||||||
|
|
||||||
if (stream && (stream->state == NGHTTP2_STREAM_RESERVED ||
|
if (stream && (stream->state == NGHTTP2_STREAM_RESERVED ||
|
||||||
item->aux_data.headers.attach_stream)) {
|
item->aux_data.headers.attach_stream)) {
|
||||||
item->cycle = session->last_cycle;
|
|
||||||
|
|
||||||
rv = nghttp2_stream_attach_item(stream, item, session);
|
rv = nghttp2_stream_attach_item(stream, item, session);
|
||||||
|
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
|
@ -747,8 +745,6 @@ int nghttp2_session_add_item(nghttp2_session *session,
|
||||||
return NGHTTP2_ERR_DATA_EXIST;
|
return NGHTTP2_ERR_DATA_EXIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
item->cycle = session->last_cycle;
|
|
||||||
|
|
||||||
rv = nghttp2_stream_attach_item(stream, item, session);
|
rv = nghttp2_stream_attach_item(stream, item, session);
|
||||||
|
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
|
|
Loading…
Reference in New Issue