patch-1.3.28 linux/drivers/scsi/sd_ioctl.c

Next file: linux/drivers/scsi/seagate.c
Previous file: linux/drivers/scsi/sd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/drivers/scsi/sd_ioctl.c linux/drivers/scsi/sd_ioctl.c
@@ -19,11 +19,9 @@
 #include "hosts.h"
 #include "sd.h"
 
-extern int revalidate_scsidisk(int, int);
-
 int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg)
 {
-    int dev = inode->i_rdev;
+    kdev_t dev = inode->i_rdev;
     int error;
     struct Scsi_Host * host;
     int diskinfo[4];
@@ -58,13 +56,13 @@
 	return 0;
     case BLKRASET:
 	if(!suser())  return -EACCES;
-	if(!inode->i_rdev) return -EINVAL;
+	if(!(inode->i_rdev)) return -EINVAL;
 	if(arg > 0xff) return -EINVAL;
 	read_ahead[MAJOR(inode->i_rdev)] = arg;
 	return 0;
     case BLKFLSBUF:
 	if(!suser())  return -EACCES;
-	if(!inode->i_rdev) return -EINVAL;
+	if(!(inode->i_rdev)) return -EINVAL;
 	fsync_dev(inode->i_rdev);
 	invalidate_buffers(inode->i_rdev);
 	return 0;

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