Skip to content

solidigm: remove logically dead code in parse_tracker_chunk_json - #3785

Open
bellis-ibm wants to merge 1 commit into
linux-nvme:masterfrom
bellis-ibm:fix/coverity-dead-code-tracker
Open

solidigm: remove logically dead code in parse_tracker_chunk_json#3785
bellis-ibm wants to merge 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
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.

1 participant