Refactor local variables in stvfe_mutate()

parent 49b29e77
......@@ -1599,6 +1599,8 @@ stvfe_sumstat(struct worker *wrk)
int
stvfe_mutate(struct worker *wrk, struct objcore *oc)
{
const struct stevedore *stv;
const struct stvfe *stvfe;
struct objhead *oh;
int retval = 0;
......@@ -1610,8 +1612,8 @@ stvfe_mutate(struct worker *wrk, struct objcore *oc)
if (oc->refcnt == 1 && !Lck_Trylock(&oh->mtx)) {
if (oc->refcnt == 1) {
const struct stevedore *stv = oc_stv(wrk, oc);
const struct stvfe *stvfe = stv_stvfe(stv);
stv = oc_stv(wrk, oc);
stvfe = stv_stvfe(stv);
assert_memstv(stvfe, stv);
AN(oc->stobj->priv);
......
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