From: teor Date: Wed, 18 Mar 2020 09:07:57 +0000 (+1000) Subject: relay: Remove a redundant function return value X-Git-Tag: tor-0.4.5.0-alpha-dev~60^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44f634d0be41200fcaa99eb48599b4a0bb52f43a;p=thirdparty%2Ftor.git relay: Remove a redundant function return value Part of 33633. --- diff --git a/src/feature/relay/circuitbuild_relay.c b/src/feature/relay/circuitbuild_relay.c index fa0083bdf5..a9c7378fef 100644 --- a/src/feature/relay/circuitbuild_relay.c +++ b/src/feature/relay/circuitbuild_relay.c @@ -160,10 +160,8 @@ circuit_extend_lspec_valid_helper(const extend_cell_t *ec, * circuit circ to wait for a new connection. If should_launch * is true, open a new connection. (Otherwise, we are already waiting for a * new connection to the same relay.) - * - * Always returns 0. */ -static int +static void circuit_open_connection_for_extend(const extend_cell_t *ec, struct circuit_t *circ, int should_launch) @@ -190,11 +188,10 @@ circuit_open_connection_for_extend(const extend_cell_t *ec, if (!n_chan) { log_info(LD_CIRC,"Launching n_chan failed. Closing circuit."); circuit_mark_for_close(circ, END_CIRC_REASON_CONNECTFAILED); - return 0; + return; } log_debug(LD_CIRC,"connecting in progress (or finished). Good."); } - return 0; } /** Take the 'extend' cell, pull out addr/port plus the onion