Skip to content

Commit bb25b97

Browse files
Su HuiAndreas Gruenbacher
authored andcommitted
gfs2: remove dead code in add_to_queue
clang static analyzer complains that value stored to 'gh' is never read. The code of this line is useless after commit 0b93bac ("gfs2: Remove LM_FLAG_PRIORITY flag"). Remove this code to save space. Signed-off-by: Su Hui <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent bdcb8aa commit bb25b97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/gfs2/glock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,6 @@ __acquires(&gl->gl_lockref.lock)
15241524
return;
15251525
}
15261526
list_add_tail(&gh->gh_list, insert_pt);
1527-
gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list);
15281527
spin_unlock(&gl->gl_lockref.lock);
15291528
if (sdp->sd_lockstruct.ls_ops->lm_cancel)
15301529
sdp->sd_lockstruct.ls_ops->lm_cancel(gl);

0 commit comments

Comments
 (0)