mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
9pfs: drop v9fs_register_transport()
No good reasons to do this outside of v9fs_device_realize_common(). Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
parent
b05631954d
commit
066eb006b5
4 changed files with 10 additions and 17 deletions
|
@ -3485,7 +3485,8 @@ void pdu_submit(V9fsPDU *pdu, P9MsgHeader *hdr)
|
|||
}
|
||||
|
||||
/* Returns 0 on success, 1 on failure. */
|
||||
int v9fs_device_realize_common(V9fsState *s, Error **errp)
|
||||
int v9fs_device_realize_common(V9fsState *s, const V9fsTransport *t,
|
||||
Error **errp)
|
||||
{
|
||||
int i, len;
|
||||
struct stat stat;
|
||||
|
@ -3493,6 +3494,9 @@ int v9fs_device_realize_common(V9fsState *s, Error **errp)
|
|||
V9fsPath path;
|
||||
int rc = 1;
|
||||
|
||||
assert(!s->transport);
|
||||
s->transport = t;
|
||||
|
||||
/* initialize pdu allocator */
|
||||
QLIST_INIT(&s->free_list);
|
||||
QLIST_INIT(&s->active_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue