diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 15:30:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 17:59:29 -0300 |
commit | a896dc7a1f416e2b76efabff27c624c69645cc50 (patch) | |
tree | 7407a8d82a8eefd4210060ac4f19a8fe7f26ad70 /drivers/media/pci/bt8xx/dst_ca.c | |
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/dst_ca.c')
-rw-r--r-- | drivers/media/pci/bt8xx/dst_ca.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) 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) |