From 0f7b11bdc28e2a0d52acd1e6d75b607ffa7a29e6 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 1 Aug 2018 09:48:49 +0200 Subject: [PATCH] Remove redundant code --- connectd/connect.c | 1 - devtools/print_wire.c | 1 - wallet/wallet.c | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/connectd/connect.c b/connectd/connect.c index da0fd260d780..474aa26d0ba7 100644 --- a/connectd/connect.c +++ b/connectd/connect.c @@ -1393,7 +1393,6 @@ static void connect_failed(struct io_conn *conn, struct reaching *reach) retry_important, imp); } tal_free(reach); - return; } static struct io_plan *conn_init(struct io_conn *conn, struct reaching *reach) diff --git a/devtools/print_wire.c b/devtools/print_wire.c index 2db2eb6f84d2..5463ff297313 100644 --- a/devtools/print_wire.c +++ b/devtools/print_wire.c @@ -80,7 +80,6 @@ static void printwire_alias(const u8 **cursor, size_t *plen, size_t len) if (!print_hexstring(cursor, plen, len)) return; printf(" ]\n"); - return; } static void printwire_addresses(const u8 **cursor, size_t *plen, size_t len) diff --git a/wallet/wallet.c b/wallet/wallet.c index f14ecbdac6ec..794f4df7d5b6 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -1316,7 +1316,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet, return false; } - while (ok && stmt && sqlite3_step(stmt) == SQLITE_ROW) { + while (ok && sqlite3_step(stmt) == SQLITE_ROW) { struct htlc_in *in = tal(chan, struct htlc_in); ok &= wallet_stmt2htlc_in(chan, stmt, in); connect_htlc_in(htlcs_in, in); @@ -1337,7 +1337,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet, return false; } - while (ok && stmt && sqlite3_step(stmt) == SQLITE_ROW) { + while (ok && sqlite3_step(stmt) == SQLITE_ROW) { struct htlc_out *out = tal(chan, struct htlc_out); ok &= wallet_stmt2htlc_out(chan, stmt, out); connect_htlc_out(htlcs_out, out);