Cleanup: src.ctf.lttng-live: coding style
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 25 Oct 2019 15:17:45 +0000 (11:17 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 29 Oct 2019 18:50:08 +0000 (14:50 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I31d1f0c9503de42be969fb67a294c9cf7548d441
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2266
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/lttng-live/viewer-connection.c

index e8af3771b83c767929dfef58957551184a32ed85..c5f7c559bfb1ac4ed479e4091aead3ddd760e423 100644 (file)
@@ -74,8 +74,11 @@ ssize_t lttng_live_recv(struct live_viewer_connection *viewer_connection,
                        }
                }
        } while (ret > 0 && to_copy > 0);
-       if (ret > 0)
+
+       if (ret > 0) {
                ret = copied;
+       }
+
        /* ret = 0 means orderly shutdown, ret == BT_SOCKET_ERROR is error. */
        return ret;
 }
This page took 0.025443 seconds and 4 git commands to generate.