]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6103): dvb_ca_en50221: return correct error code value
authorMarco Schluessler <marco@lordzodiac.de>
Sat, 25 Aug 2007 14:36:39 +0000 (11:36 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:06:58 +0000 (22:06 -0300)
return correct error code value

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvb_ca_en50221.c

index b0bf21958edefc08e16986e59ddbb6f89af2bbcb..3f7479557919aea2ada0a761fa8fee882be2d64f 100644 (file)
@@ -1569,7 +1569,7 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
 {
        struct dvb_device *dvbdev = file->private_data;
        struct dvb_ca_private *ca = dvbdev->priv;
-       int err = 0;
+       int err;
 
        dprintk("%s\n", __FUNCTION__);
 
@@ -1581,7 +1581,7 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
 
        module_put(ca->pub->owner);
 
-       return 0;
+       return err;
 }