commit | cb0942b81249798e15c3f04eee2946ef543e8115 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Aug 27 14:48:26 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Sep 26 21:10:25 2012 -0400 |
tree | 7d494c580a847342577661782c5173f76178aa81 | |
parent | cecb46f194460d23cacf3b13593f9f5a4f7a0fed [diff] [blame] |
make get_file() return its argument simplifies a bunch of callers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/select.c b/fs/select.c index db14c78..ffdd16d 100644 --- a/fs/select.c +++ b/fs/select.c
@@ -220,8 +220,7 @@ struct poll_table_entry *entry = poll_get_entry(pwq); if (!entry) return; - get_file(filp); - entry->filp = filp; + entry->filp = get_file(filp); entry->wait_address = wait_address; entry->key = p->_key; init_waitqueue_func_entry(&entry->wait, pollwake);