]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] bt8xx: just return 0 instead of using a var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:30:41 +0000 (15:30 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:29 +0000 (17:59 -0300)
Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/bt8xx/bttv-driver.c
drivers/media/pci/bt8xx/dst_ca.c

index 750bdab8aacb2c1152d7560ed49b3762b0ee36d4..4a8176c09fc9429eea49c2e49e811618354c78b0 100644 (file)
@@ -1531,7 +1531,6 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh,
 {
        struct bttv_buffer *old;
        unsigned long flags;
-       int retval = 0;
 
        dprintk("switch_overlay: enter [new=%p]\n", new);
        if (new)
@@ -1551,7 +1550,7 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh,
        if (NULL == new)
                free_btres_lock(btv,fh,RESOURCE_OVERLAY);
        dprintk("switch_overlay: done\n");
-       return retval;
+       return 0;
 }
 
 /* ----------------------------------------------------------------------- */
index 0e788fca992cf1e27579dd689a12cfc2b0da2f38..c22c4ae0684491266406fd0dea3001b992ae101f 100644 (file)
@@ -674,11 +674,9 @@ static int dst_ca_release(struct inode *inode, struct file *file)
 
 static ssize_t dst_ca_read(struct file *file, char __user *buffer, size_t length, loff_t *offset)
 {
-       ssize_t bytes_read = 0;
-
        dprintk(verbose, DST_CA_DEBUG, 1, " Device read.");
 
-       return bytes_read;
+       return 0;
 }
 
 static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *offset)