]> err.no Git - linux-2.6/blobdiff - drivers/media/common/saa7146_fops.c
V4L/DVB (8540): em28xx-cards: Add Compro VideoMate ForYou/Stereo model
[linux-2.6] / drivers / media / common / saa7146_fops.c
index f0703d8bc3e8d9492e47382330db3f021dbb93e8..cf6a817d50594a21f76721f1c386b1b2d798418c 100644 (file)
@@ -272,7 +272,7 @@ static int fops_open(struct inode *inode, struct file *file)
 
        result = 0;
 out:
-       if( fh != 0 && result != 0 ) {
+       if (fh && result != 0) {
                kfree(fh);
                file->private_data = NULL;
        }
@@ -563,7 +563,7 @@ int saa7146_unregister_device(struct video_device **vid, struct saa7146_dev* dev
 
        DEB_EE(("dev:%p\n",dev));
 
-       if( VFL_TYPE_GRABBER == (*vid)->type ) {
+       if ((*vid)->vfl_type == VFL_TYPE_GRABBER) {
                vv->video_minor = -1;
        } else {
                vv->vbi_minor = -1;