diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 14:30:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 16:59:29 -0400 |
commit | a896dc7a1f416e2b76efabff27c624c69645cc50 (patch) | |
tree | 7407a8d82a8eefd4210060ac4f19a8fe7f26ad70 /drivers/media/pci/bt8xx | |
parent | 8b37c6455fc8f43e0e95db2847284e618db6a4f8 (diff) |
[media] bt8xx: just return 0 instead of using a var
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>
Diffstat (limited to 'drivers/media/pci/bt8xx')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-driver.c | 3 | ||||
-rw-r--r-- | drivers/media/pci/bt8xx/dst_ca.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 750bdab8aacb..4a8176c09fc9 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c | |||
@@ -1531,7 +1531,6 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh, | |||
1531 | { | 1531 | { |
1532 | struct bttv_buffer *old; | 1532 | struct bttv_buffer *old; |
1533 | unsigned long flags; | 1533 | unsigned long flags; |
1534 | int retval = 0; | ||
1535 | 1534 | ||
1536 | dprintk("switch_overlay: enter [new=%p]\n", new); | 1535 | dprintk("switch_overlay: enter [new=%p]\n", new); |
1537 | if (new) | 1536 | if (new) |
@@ -1551,7 +1550,7 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh, | |||
1551 | if (NULL == new) | 1550 | if (NULL == new) |
1552 | free_btres_lock(btv,fh,RESOURCE_OVERLAY); | 1551 | free_btres_lock(btv,fh,RESOURCE_OVERLAY); |
1553 | dprintk("switch_overlay: done\n"); | 1552 | dprintk("switch_overlay: done\n"); |
1554 | return retval; | 1553 | return 0; |
1555 | } | 1554 | } |
1556 | 1555 | ||
1557 | /* ----------------------------------------------------------------------- */ | 1556 | /* ----------------------------------------------------------------------- */ |
diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c index 0e788fca992c..c22c4ae06844 100644 --- a/drivers/media/pci/bt8xx/dst_ca.c +++ b/drivers/media/pci/bt8xx/dst_ca.c | |||
@@ -674,11 +674,9 @@ static int dst_ca_release(struct inode *inode, struct file *file) | |||
674 | 674 | ||
675 | static ssize_t dst_ca_read(struct file *file, char __user *buffer, size_t length, loff_t *offset) | 675 | static ssize_t dst_ca_read(struct file *file, char __user *buffer, size_t length, loff_t *offset) |
676 | { | 676 | { |
677 | ssize_t bytes_read = 0; | ||
678 | |||
679 | dprintk(verbose, DST_CA_DEBUG, 1, " Device read."); | 677 | dprintk(verbose, DST_CA_DEBUG, 1, " Device read."); |
680 | 678 | ||
681 | return bytes_read; | 679 | return 0; |
682 | } | 680 | } |
683 | 681 | ||
684 | static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *offset) | 682 | static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *offset) |