Skip to content

Commit

Permalink
9p: Remove unneeded free of fcall for Flush
Browse files Browse the repository at this point in the history
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: Tom Tucker <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
  • Loading branch information
Tom Tucker authored and ericvh committed Nov 5, 2008
1 parent cac23d6 commit 82b189e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 82b189e

Please sign in to comment.