Skip to content

Commit

Permalink
error: Remove NULL checks on error_propagate() calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vivier authored and ebblake committed Mar 27, 2018
1 parent 2d9178d commit 710c263
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions io/channel-websock.c
Expand Up @@ -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(
Expand Down

0 comments on commit 710c263

Please sign in to comment.