From 4846303fa24408bc38fc6a35ec79398ebf7eda54 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 5 Mar 2015 02:09:39 -0800 Subject: [PATCH] Remove useless checks in rev.13951 Being overly paranoid it seems. Detected by Coverity Scan. Issue 1273436 --- src/tunnel.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tunnel.cc b/src/tunnel.cc index 485de198ff..9dfcb7dd8d 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -696,9 +696,8 @@ tunnelDelayedClientRead(void *data) { if (!data) return; + TunnelStateData *tunnel = static_cast(data); - if (!tunnel) - return; tunnel->client.readPending = NULL; static uint64_t counter=0; debugs(26, 7, "Client read(2) delayed " << ++counter << " times"); @@ -710,9 +709,8 @@ tunnelDelayedServerRead(void *data) { if (!data) return; + TunnelStateData *tunnel = static_cast(data); - if (!tunnel) - return; tunnel->server.readPending = NULL; static uint64_t counter=0; debugs(26, 7, "Server read(2) delayed " << ++counter << " times"); -- 2.47.3