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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1524,7 +1524,6 @@ __acquires(&gl->gl_lockref.lock)
		return;
	}
	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);
	if (sdp->sd_lockstruct.ls_ops->lm_cancel)
		sdp->sd_lockstruct.ls_ops->lm_cancel(gl);