Skip to content

solidigm: remove logically dead code in parse_tracker_chunk_json - #3785

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
bellis-ibm:fix/coverity-dead-code-tracker
Aug 10, 2026
Merged

solidigm: remove logically dead code in parse_tracker_chunk_json#3785
igaw merged 1 commit into
linux-nvme:masterfrom
bellis-ibm:fix/coverity-dead-code-tracker

Conversation

@bellis-ibm

Copy link
Copy Markdown
Contributor

entry_info is guaranteed non-NULL at this point because the
!entry_info guard above would have continued to the next loop
iteration if it were NULL. The ternary expression

entry_info ? get_arg_description(entry_info, i) : NULL

therefore has a dead branch. Replace it with a direct call to
get_arg_description().

Fixes Coverity CID 557386 (DEADCODE).
Signed-off-by: Brooke Ellis Brooke.Ellis@ibm.com

entry_info is guaranteed non-NULL at this point because the
!entry_info guard above would have continued to the next loop
iteration if it were NULL. The ternary expression

  entry_info ? get_arg_description(entry_info, i) : NULL

therefore has a dead branch. Replace it with a direct call to
get_arg_description().

Fixes Coverity CID 557386 (DEADCODE).

Signed-off-by: Brooke Ellis <Brooke.Ellis@ibm.com>
@bellis-ibm
bellis-ibm force-pushed the fix/coverity-dead-code-tracker branch from 063f7e3 to 24d0178 Compare August 7, 2026 20:18
@igaw
igaw merged commit 8690a02 into linux-nvme:master Aug 10, 2026
33 checks passed
@igaw

igaw commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants