From 5487d83d56d998dc7abf7fdc60eea3dade785ecc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 24 Oct 2017 23:27:20 +0200 Subject: [PATCH] http2: remove unused assignment When assigning to a union twice, the first assignment is a no-op. PR-URL: https://github.com/nodejs/node/pull/16461 Reviewed-By: Anatoli Papirovski Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann --- src/node_http2_core-inl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node_http2_core-inl.h b/src/node_http2_core-inl.h index 38deb4943b..11f48381ef 100644 --- a/src/node_http2_core-inl.h +++ b/src/node_http2_core-inl.h @@ -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;