From fcbbf1ec8f01d15f7afea161010580772139d38c Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Fri, 9 Jul 2010 06:58:40 +0200 Subject: 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 --- cryptodev_main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cryptodev_main.c') 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); } -- cgit