]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/9p/trans_fd.c
net/9p: Initialize opts->privport as it should be.
[karo-tx-linux.git] / net / 9p / trans_fd.c
index 80d08f6664cbb5611eef291b959facd5332a61ef..154479d2756d8d88487c17d3f659871fcb59d828 100644 (file)
@@ -734,6 +734,7 @@ static int parse_opts(char *params, struct p9_fd_opts *opts)
        opts->port = P9_PORT;
        opts->rfd = ~0;
        opts->wfd = ~0;
+       opts->privport = 0;
 
        if (!params)
                return 0;
@@ -1013,7 +1014,6 @@ p9_fd_create(struct p9_client *client, const char *addr, char *args)
 {
        int err;
        struct p9_fd_opts opts;
-       struct p9_trans_fd *p;
 
        parse_opts(args, &opts);
 
@@ -1026,7 +1026,6 @@ p9_fd_create(struct p9_client *client, const char *addr, char *args)
        if (err < 0)
                return err;
 
-       p = (struct p9_trans_fd *) client->trans;
        p9_conn_create(client);
 
        return 0;