Skip to content

Fix dead assignemnt in glfs_h_create_from_handle (clang-check)#4654

Open
ThalesBarretto wants to merge 1 commit intogluster:develfrom
ThalesBarretto:thales_dead_pub_glfs_h_create_from_handle
Open

Fix dead assignemnt in glfs_h_create_from_handle (clang-check)#4654
ThalesBarretto wants to merge 1 commit intogluster:develfrom
ThalesBarretto:thales_dead_pub_glfs_h_create_from_handle

Conversation

@ThalesBarretto
Copy link
Contributor

A dead asssignment flagged by clang in glfs_h_create_from_handle
occurs under the label 'found' when GF_CALLOC fails, when 'ret = -1' but
in that path we end up bailing out and never using that value. Since we
do not even return this value, the fix is just remove this dead line.

	A dead asssignment flagged by clang in glfs_h_create_from_handle
occurs under the label 'found' when GF_CALLOC fails, when 'ret = -1' but
in that path we end up bailing out and never using that value. Since we
do not even return this value, the fix is just remove this dead line.
@ThalesBarretto ThalesBarretto marked this pull request as ready for review February 20, 2026 04:19
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