From 749c4c5ec9523abf0a914e8af9c5ca86a66c4e71 Mon Sep 17 00:00:00 2001 From: Thales Antunes de Oliveira Barretto Date: Fri, 20 Feb 2026 01:10:45 -0300 Subject: [PATCH] Fix dead assignment in glfs_resolve_component (clang-check) In the path were priv_glfs_loc_touchup(&loc) fails, we goto out and the value we have just assigned, 'ret = -1' is actually never used in this path again. This fixes it by just removing the dead code line. --- api/src/glfs-resolve.c | 1 - 1 file changed, 1 deletion(-) diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c index 0954fcf70b6..23ba6915ed1 100644 --- a/api/src/glfs-resolve.c +++ b/api/src/glfs-resolve.c @@ -400,7 +400,6 @@ glfs_resolve_component(struct glfs *fs, xlator_t *subvol, inode_t *parent, glret = priv_glfs_loc_touchup(&loc); if (glret < 0) { - ret = -1; goto out; }