Clean-up: trace-chunk: remove unreachable code
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:51:04 +0000 (17:51 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 22:51:04 +0000 (17:51 -0500)
commitf3ce6f5d9f5cfbe70898ca94efb3c8b31968534d
tree01a0a47d3e0508b729c48084e6e0c7f24d706942
parentd05a3d937ddc2b666b153e6adaf9610800772b68
Clean-up: trace-chunk: remove unreachable code

`path` can never be NULL in this code path; it is unnecessary to check
it.

There may be a null pointer dereference, or else the comparison
against null is unnecessary.

In lttng_trace_chunk_rename_path_no_lock: All paths that lead to this
null pointer comparison already dereference the pointer
earlier (CWE-476).

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4d850b0b8686300268d85f577ae5f14a96d66348
src/common/trace-chunk.c
This page took 0.029882 seconds and 4 git commands to generate.