patch-1.3.28 linux/fs/proc/inode.c

Next file: linux/fs/proc/link.c
Previous file: linux/fs/proc/fd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -162,35 +162,6 @@
 		return;
 	}
 
-	if (ino == PROC_SCSI_SCSI) {
-		inode->i_mode = S_IFREG | S_IRUGO | S_IWUSR;
-		inode->i_op = &proc_scsi_inode_operations;
-		return;
-	}
-	/*
-	 * Special hook used when scsi is not present.
-	 */
-	if (ino == PROC_SCSI_NOT_PRESENT) {
-		inode->i_mode = S_IFREG | S_IRUGO | S_IXUGO;
-		inode->i_op = &proc_scsi_inode_operations;
-		return;
-	}
-
-	/* files within /proc/scsi */
-	if ((ino > PROC_SCSI_SCSI) && (ino < PROC_SCSI_FILE)) {
-	        inode->i_nlink = 2;
-		inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO;
-		inode->i_op = &proc_scsi_inode_operations;
-		return;
-	}
-
-	/* files within /proc/scsi/<driver>/  */
-	if ((ino >= PROC_SCSI_FILE) && (ino <= PROC_SCSI_LAST)) {
-		inode->i_mode = S_IFREG | S_IRUGO | S_IWUSR;
-		inode->i_op = &proc_scsi_inode_operations;
-		return;
-	}
-
 	if (!pid) {
 		switch (ino) {
 			case PROC_KMSG:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this