diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-09 06:58:40 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-19 09:23:49 +0200 |
commit | fcbbf1ec8f01d15f7afea161010580772139d38c (patch) | |
tree | 6ad58106f284962a7cf42be0c6df2777321289b7 /cryptodev_main.c | |
parent | d14687b82cb156a98990abff610f22726dc9ec28 (diff) | |
download | cryptodev-linux-fcbbf1ec8f01d15f7afea161010580772139d38c.tar.gz cryptodev-linux-fcbbf1ec8f01d15f7afea161010580772139d38c.tar.xz cryptodev-linux-fcbbf1ec8f01d15f7afea161010580772139d38c.zip |
Simplify clonefd
get_unused_fd() already sets the right bit in open_fds, no need to do it
again (compare e.g. sys_dup()).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r-- | cryptodev_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c index 7424746..d677d5b 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -576,12 +576,10 @@ cryptodev_release(struct inode *inode, struct file *filp) static int clonefd(struct file *filp) { - struct fdtable *fdt = files_fdtable(current->files); int ret; ret = get_unused_fd(); if (ret >= 0) { get_file(filp); - FD_SET(ret, fdt->open_fds); fd_install(ret, filp); } |