Commit bb25b975 authored by Su Hui's avatar Su Hui Committed by Andreas Gruenbacher

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 0b93bac2
("gfs2: Remove LM_FLAG_PRIORITY flag"). Remove this code to save space.
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent bdcb8aa4
...@@ -1524,7 +1524,6 @@ __acquires(&gl->gl_lockref.lock) ...@@ -1524,7 +1524,6 @@ __acquires(&gl->gl_lockref.lock)
return; return;
} }
list_add_tail(&gh->gh_list, insert_pt); list_add_tail(&gh->gh_list, insert_pt);
gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list);
spin_unlock(&gl->gl_lockref.lock); spin_unlock(&gl->gl_lockref.lock);
if (sdp->sd_lockstruct.ls_ops->lm_cancel) if (sdp->sd_lockstruct.ls_ops->lm_cancel)
sdp->sd_lockstruct.ls_ops->lm_cancel(gl); sdp->sd_lockstruct.ls_ops->lm_cancel(gl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment