Skip to content

Commit

Permalink
http2: remove unused assignment
Browse files Browse the repository at this point in the history
When assigning to a union twice, the first assignment is a no-op.

PR-URL: #16461
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
addaleax authored and cjihrig committed Nov 6, 2017
1 parent b50c334 commit 3f52962
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_http2_core-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,6 @@ inline int Nghttp2Stream::SubmitFile(int fd,
DEBUG_HTTP2("Nghttp2Stream %d: submitting file\n", id_);
getTrailers_ = options & STREAM_OPTION_GET_TRAILERS;
nghttp2_data_provider prov;
prov.source.ptr = this;
prov.source.fd = fd;
prov.read_callback = Nghttp2Session::OnStreamReadFD;

Expand Down

0 comments on commit 3f52962

Please sign in to comment.