From: Laurent Vivier <lvivier@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Alexander Graf" <agraf@suse.de>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-block@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Fam Zheng" <famz@redhat.com>,
qemu-trivial@nongnu.org, "Alberto Garcia" <berto@igalia.com>,
qemu-ppc@nongnu.org, "Kevin Wolf" <kwolf@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Max Reitz" <mreitz@redhat.com>,
"Max Filippov" <jcmvbkbc@gmail.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
"Peter Crosthwaite" <crosthwaite.peter@gmail.com>,
qemu-arm@nongnu.org, "Yongbok Kim" <yongbok.kim@mips.com>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"Markus Armbruster" <armbru@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Igor Mitsyanko" <i.mitsyanko@gmail.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Eric Blake" <eblake@redhat.com>,
"David Gibson" <david@gibson.dropbear.id.au>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Richard Henderson" <rth@twiddle.net>,
"Laurent Vivier" <lvivier@redhat.com>
Subject: [Qemu-devel] [PATCH v2 3/5] error: Remove NULL checks on error_propagate() calls
Date: Fri, 23 Mar 2018 15:32:00 +0100 [thread overview]
Message-ID: <20180323143202.28879-4-lvivier@redhat.com> (raw)
In-Reply-To: <20180323143202.28879-1-lvivier@redhat.com>
Re-run Coccinelle patch
scripts/coccinelle/error_propagate_null.cocci
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
io/channel-websock.c | 4 +---
1 file changed, 1 insertion(+), 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(
--
2.14.3
next prev parent reply other threads:[~2018-03-23 14:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-23 14:31 [Qemu-devel] [PATCH v2 0/5] coccinelle: re-run scripts from scripts/coccinelle Laurent Vivier
2018-03-23 14:31 ` [Qemu-devel] [PATCH v2 1/5] make: improve check for stale generated files in source dir Laurent Vivier
2018-03-23 14:31 ` [Qemu-devel] [PATCH v2 2/5] error: Strip trailing '\n' from error string arguments (again again) Laurent Vivier
2018-03-23 16:59 ` Eric Blake
2018-03-23 14:32 ` Laurent Vivier [this message]
2018-03-23 19:14 ` [Qemu-devel] [Qemu-ppc] [PATCH v2 3/5] error: Remove NULL checks on error_propagate() calls Thomas Huth
2018-03-23 14:32 ` [Qemu-devel] [PATCH v2 4/5] qdict: remove useless cast Laurent Vivier
2018-03-27 3:10 ` Fam Zheng
2018-03-23 14:32 ` [Qemu-devel] [PATCH v2 5/5] Remove unnecessary variables for function return value Laurent Vivier
2018-03-24 0:24 ` David Gibson
2018-03-23 16:26 ` [Qemu-devel] [PATCH v2 0/5] coccinelle: re-run scripts from scripts/coccinelle no-reply
2018-03-23 17:47 ` Eric Blake
2018-03-23 22:08 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180323143202.28879-4-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=aurelien@aurel32.net \
--cc=berrange@redhat.com \
--cc=berto@igalia.com \
--cc=crosthwaite.peter@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=ehabkost@redhat.com \
--cc=famz@redhat.com \
--cc=i.mitsyanko@gmail.com \
--cc=jasowang@redhat.com \
--cc=jcmvbkbc@gmail.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=rth@twiddle.net \
--cc=yongbok.kim@mips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).