]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/sd.c
[PATCH] eliminate use of ->f_flags in block methods
[linux-2.6-omap-h63xx.git] / drivers / scsi / sd.c
index 7c4d2e68df1c3e974998d12dbc83c66302ef0d59..202c1ed9abd7d90c1f2975ab82b9686159175f5c 100644 (file)
@@ -640,7 +640,7 @@ static int sd_open(struct inode *inode, struct file *filp)
         */
        retval = -ENOMEDIUM;
        if (sdev->removable && !sdkp->media_present &&
-           !(filp->f_flags & O_NDELAY))
+           !(filp->f_mode & FMODE_NDELAY))
                goto error_out;
 
        /*