Refactor local variables in stvfe_mutate()

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