Cleanup: ctf: logically dead code
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 10 Oct 2019 15:11:06 +0000 (11:11 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 10 Oct 2019 18:45:01 +0000 (14:45 -0400)
commit2b601d0ca57e5e6edf08a2ee224e6238aab4c711
treea8105b7ca6739cf1c07307ea15ee4bff41edb8a0
parent694fc8884efb18d4d2e91f90e1137ab872b2e7c0
Cleanup: ctf: logically dead code

The `iter_status` variable is guaranteed to be equal to
`BT_MSG_ITER_STATUS_OK` when breaking from the `do-while` loop above.

Coverity report:
  CID 1401337 (#1 of 1): Logically dead code (DEADCODE) dead_error_line:
  Execution cannot reach this statement: goto error;

Reported-by: Coverity (1401337) - Logically dead code
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I51448d800b8ed37e80ce64b77df3905c8042b1bf
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2166
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/fs-src/data-stream-file.c
This page took 0.025084 seconds and 4 git commands to generate.