Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116248
b: refs/heads/master
c: 95820a3
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Eric Van Hensbergen committed Oct 17, 2008
1 parent 5367e65 commit 6850c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91b8534fa8f5e01f249b1bf8df0a2540053549ad
refs/heads/master: 95820a36516d12dcb49d066dd3d5b187a2557612
17 changes: 1 addition & 16 deletions trunk/net/9p/trans_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,6 @@ p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p)
return;
}

if (!wait_address) {
P9_DPRINTK(P9_DEBUG_ERROR, "no wait_address\n");
pwait->wait_addr = ERR_PTR(-EIO);
return;
}

pwait->conn = m;
pwait->wait_addr = wait_address;
init_waitqueue_func_entry(&pwait->wait, p9_pollwake);
Expand All @@ -561,7 +555,7 @@ p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p)

static struct p9_conn *p9_conn_create(struct p9_client *client)
{
int i, n;
int n;
struct p9_conn *m;

P9_DPRINTK(P9_DEBUG_MUX, "client %p msize %d\n", client, client->msize);
Expand Down Expand Up @@ -590,15 +584,6 @@ static struct p9_conn *p9_conn_create(struct p9_client *client)
set_bit(Wpending, &m->wsched);
}

for (i = 0; i < ARRAY_SIZE(m->poll_wait); i++) {
if (IS_ERR(m->poll_wait[i].wait_addr)) {
p9_mux_poll_stop(m);
kfree(m);
/* return the error code */
return (void *)m->poll_wait[i].wait_addr;
}
}

return m;
}

Expand Down

0 comments on commit 6850c85

Please sign in to comment.