[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>
This commit is contained in:
parent
8b37c6455f
commit
a896dc7a1f
2 changed files with 2 additions and 5 deletions
|
@ -1531,7 +1531,6 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh,
|
||||||
{
|
{
|
||||||
struct bttv_buffer *old;
|
struct bttv_buffer *old;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int retval = 0;
|
|
||||||
|
|
||||||
dprintk("switch_overlay: enter [new=%p]\n", new);
|
dprintk("switch_overlay: enter [new=%p]\n", new);
|
||||||
if (new)
|
if (new)
|
||||||
|
@ -1551,7 +1550,7 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh,
|
||||||
if (NULL == new)
|
if (NULL == new)
|
||||||
free_btres_lock(btv,fh,RESOURCE_OVERLAY);
|
free_btres_lock(btv,fh,RESOURCE_OVERLAY);
|
||||||
dprintk("switch_overlay: done\n");
|
dprintk("switch_overlay: done\n");
|
||||||
return retval;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
|
|
@ -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)
|
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.");
|
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)
|
static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *offset)
|
||||||
|
|
Loading…
Add table
Reference in a new issue