summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 20:30:41 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 22:59:29 +0200
commita896dc7a1f416e2b76efabff27c624c69645cc50 (patch)
tree7407a8d82a8eefd4210060ac4f19a8fe7f26ad70 /drivers/media/pci/bt8xx/bttv-driver.c
parent[media] media-devnode: just return 0 instead of using a var (diff)
downloadlinux-a896dc7a1f416e2b76efabff27c624c69645cc50.tar.xz
linux-a896dc7a1f416e2b76efabff27c624c69645cc50.zip
[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/bttv-driver.c')
-rw-r--r--drivers/media/pci/bt8xx/bttv-driver.c3
1 files changed, 1 insertions, 2 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,
{
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;
}
/* ----------------------------------------------------------------------- */