From 2ed53025f927ac948ca4e6acb654357122262bb3 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 8 Dec 2017 16:14:59 +0100 Subject: [PATCH] Remove redundant remote_shutdown_scriptpubkey assignment --- lightningd/peer_control.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 7454e6f57..911bd736f 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1688,8 +1688,7 @@ static void peer_got_shutdown(struct peer *peer, const u8 *msg) } /* FIXME: Add to spec that we must allow repeated shutdown! */ - peer->remote_shutdown_scriptpubkey - = tal_free(peer->remote_shutdown_scriptpubkey); + tal_free(peer->remote_shutdown_scriptpubkey); peer->remote_shutdown_scriptpubkey = scriptpubkey; /* BOLT #2: