patch-2.1.56 linux/arch/alpha/kernel/osf_sys.c

Next file: linux/arch/i386/defconfig
Previous file: linux/arch/alpha/kernel/bios32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.55/linux/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -135,8 +135,6 @@
 {
 	int error;
 	struct file *file;
-	struct dentry *dentry;
-	struct inode *inode;
 	struct osf_dirent_callback buf;
 
 	error = -EBADF;
@@ -147,14 +145,6 @@
 	if (!file)
 		goto out;
 
-	dentry = file->f_dentry;
-	if (!dentry)
-		goto out;
-
-	inode = dentry->d_inode;
-	if (!inode)
-		goto out;
-
 	buf.dirent = dirent;
 	buf.basep = basep;
 	buf.count = count;
@@ -164,7 +154,7 @@
 	if (!file->f_op || !file->f_op->readdir)
 		goto out;
 
-	error = file->f_op->readdir(inode, file, &buf, osf_filldir);
+	error = file->f_op->readdir(file, &buf, osf_filldir);
 	if (error < 0)
 		goto out;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov