Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82b189ea authored by Tom Tucker's avatar Tom Tucker Committed by Eric Van Hensbergen
Browse files

9p: Remove unneeded free of fcall for Flush



T and R fcall are reused until the client is destroyed. There does
not need to be a special case for Flush

Signed-off-by: default avatarTom Tucker <tom@opengridcomputing.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent cac23d65
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -311,12 +311,6 @@ static void p9_free_req(struct p9_client *c, struct p9_req_t *r)
	r->status = REQ_STATUS_IDLE;
	if (tag != P9_NOTAG && p9_idpool_check(tag, c->tagpool))
		p9_idpool_put(tag, c->tagpool);

	/* if this was a flush request we have to free response fcall */
	if (r->rc->id == P9_RFLUSH) {
		kfree(r->tc);
		kfree(r->rc);
	}
}

/**