]> Git Repo - qemu.git/commitdiff
error: Remove NULL checks on error_propagate() calls
authorLaurent Vivier <[email protected]>
Fri, 23 Mar 2018 14:32:00 +0000 (15:32 +0100)
committerEric Blake <[email protected]>
Tue, 27 Mar 2018 15:17:32 +0000 (10:17 -0500)
Re-run Coccinelle patch
scripts/coccinelle/error_propagate_null.cocci

Signed-off-by: Laurent Vivier <[email protected]>
Message-Id: <20180323143202[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
io/channel-websock.c

index ec48a305f025edb851c2a9af0b40e16b8fae0752..e6608b969d71a27c01aed2a828830c0007982ede 100644 (file)
@@ -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(
This page took 0.02657 seconds and 4 git commands to generate.