diff options
author | Laurent Vivier <lvivier@redhat.com> | 2018-03-23 15:32:00 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2018-03-27 10:17:32 -0500 |
commit | 710c2634078c030c1ca9cd3c15a96224ff3d90e2 (patch) | |
tree | ceacec9760b4b847ddaa2643c00a482f156b7150 /io/channel-websock.c | |
parent | 2d9178d90f426d10860ac655f9748aa088870b1e (diff) |
error: Remove NULL checks on error_propagate() calls
Re-run Coccinelle patch
scripts/coccinelle/error_propagate_null.cocci
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20180323143202.28879-4-lvivier@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'io/channel-websock.c')
-rw-r--r-- | io/channel-websock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/io/channel-websock.c b/io/channel-websock.c index ec48a305f0..e6608b969d 100644 --- a/io/channel-websock.c +++ b/io/channel-websock.c @@ -586,9 +586,7 @@ static gboolean qio_channel_websock_handshake_io(QIOChannel *ioc, return TRUE; } - if (err) { - error_propagate(&wioc->io_err, err); - } + error_propagate(&wioc->io_err, err); trace_qio_channel_websock_handshake_reply(ioc); qio_channel_add_watch( |