Remove redundant code

This commit is contained in:
practicalswift
2018-08-01 09:48:49 +02:00
committed by Rusty Russell
parent a623fd8924
commit 0f7b11bdc2
3 changed files with 2 additions and 4 deletions

View File

@@ -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)

View File

@@ -80,7 +80,6 @@ hexdump:
if (!print_hexstring(cursor, plen, len))
return;
printf(" ]\n");
return;
}
static void printwire_addresses(const u8 **cursor, size_t *plen, size_t len)

View File

@@ -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);