Skip to content

Fix dead assignment in glfs_h_resolve_symlink (clang-check)#4656

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

Fix dead assignment in glfs_h_resolve_symlink (clang-check)#4656
ThalesBarretto wants to merge 1 commit intogluster:develfrom
ThalesBarretto:thales_dead_glfs_h_resolve_symlink

Conversation

@ThalesBarretto
Copy link
Contributor

When glfs_active_subvol(fs) fails, we set ret = -1 but then
go to out: without ever using the assigned value again. The fix removes
this dead line because the exit path which follows does not use it.

Signed-off-by: Thales Antunes de Oliveira Barretto thales.barretto.git@gmail.com

	When `glfs_active_subvol(fs)` fails, we set `ret = -1` but then
go to out: without ever using the assigned value again. The fix removes
this dead line because the  exit path which follows does not use it.

Signed-off-by: Thales Antunes de Oliveira Barretto <thales.barretto.git@gmail.com>
@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