summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-01-20 16:38:27 -0500
committercjihrig <cjihrig@gmail.com>2019-01-22 17:58:50 -0500
commitad2b42e3b6def7d01fdbb7ed5ea013305ed7df41 (patch)
treec2efa3718c4796e83586c09aa5eb471ff450ebb0 /src
parent38ab1e9ade1e473f1c0b7a1e7535d41654506a3d (diff)
downloadnode-new-ad2b42e3b6def7d01fdbb7ed5ea013305ed7df41.tar.gz
report: remove unnecessary intermediate variable
PR-URL: https://github.com/nodejs/node/pull/25597 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_report_utils.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_report_utils.cc b/src/node_report_utils.cc
index e93f230d31..bacc9fc3e4 100644
--- a/src/node_report_utils.cc
+++ b/src/node_report_utils.cc
@@ -232,8 +232,7 @@ void WalkHandle(uv_handle_t* h, void* arg) {
if (h->type == UV_TCP || h->type == UV_NAMED_PIPE || h->type == UV_TTY ||
h->type == UV_UDP || h->type == UV_POLL) {
uv_os_fd_t fd_v;
- uv_os_fd_t* fd = &fd_v;
- int rc = uv_fileno(h, fd);
+ int rc = uv_fileno(h, &fd_v);
// uv_os_fd_t is an int on Unix and HANDLE on Windows.
#ifndef _WIN32
if (rc == 0) {