sink.utils.counter: remove unnecessary check in counter_consume()
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Mar 2024 21:05:05 +0000 (16:05 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commitc6a7ea93dbe7b3ff25f3b22a1cc53fc8a63acd98
treeffb43608ebd93b869bd89ee17183010de29485db
parentbe0f44d1b1e20aef3b8786e3f97e45ce3d037f61
sink.utils.counter: remove unnecessary check in counter_consume()

Given the lifecycle of a component, I'm pretty sure this condition can
never be true.  For counter_consume() to be called,
counter_graph_is_configured() must execute successfully.  If
counter_graph_is_configured() executes successfully, `counter->msg_iter`
is necessarily set.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Ibd3cbcfdeefa8d79143e39c6fb846ca5eeebd249
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12010
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/utils/counter/counter.c
This page took 0.026436 seconds and 4 git commands to generate.