]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/paride/pt.c
[POWERPC] spufs: spu_find_victim may choose wrong victim
[linux-2.6-omap-h63xx.git] / drivers / block / paride / pt.c
index c902b25e48697d938179d7002ea7522fab5aad93..b91accf12656581066811fa68c18e78cfb655018 100644 (file)
@@ -232,7 +232,7 @@ static char pt_scratch[512];        /* scratch block buffer */
 
 /* kernel glue structures */
 
-static struct file_operations pt_fops = {
+static const struct file_operations pt_fops = {
        .owner = THIS_MODULE,
        .read = pt_read,
        .write = pt_write,
@@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file)
                goto out;
 
        err = -EROFS;
-       if ((!tape->flags & PT_WRITE_OK) && (file->f_mode & 2))
+       if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & 2))
                goto out;
 
        if (!(iminor(inode) & 128))