summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ttpci/av7110_av.c
diff options
context:
space:
mode:
authorDan Carpenter2014-03-28 09:26:03 +0100
committerMauro Carvalho Chehab2014-05-23 17:15:11 +0200
commitbc8aacecf22922062e283b3032d5985af51e006a (patch)
tree497666f7cd23905673ab04db8995a104d715b521 /drivers/media/pci/ttpci/av7110_av.c
parent[media] v4l: ti-vpe: fix devm_ioremap_resource() return value checking (diff)
downloadkernel-qcow2-linux-bc8aacecf22922062e283b3032d5985af51e006a.tar.gz
kernel-qcow2-linux-bc8aacecf22922062e283b3032d5985af51e006a.tar.xz
kernel-qcow2-linux-bc8aacecf22922062e283b3032d5985af51e006a.zip
[media] av7110: fix confusing indenting
The else statement here is not aligned with the correct if statement. I think the code works as intended and it's just the indenting which is wrong. Also kernel style says we should use curly braces here so I have added those. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/ttpci/av7110_av.c')
-rw-r--r--drivers/media/pci/ttpci/av7110_av.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/pci/ttpci/av7110_av.c b/drivers/media/pci/ttpci/av7110_av.c
index 301029ca4535..9544cfc06601 100644
--- a/drivers/media/pci/ttpci/av7110_av.c
+++ b/drivers/media/pci/ttpci/av7110_av.c
@@ -958,8 +958,10 @@ static unsigned int dvb_video_poll(struct file *file, poll_table *wait)
if (av7110->playing) {
if (FREE_COND)
mask |= (POLLOUT | POLLWRNORM);
- } else /* if not playing: may play if asked for */
- mask |= (POLLOUT | POLLWRNORM);
+ } else {
+ /* if not playing: may play if asked for */
+ mask |= (POLLOUT | POLLWRNORM);
+ }
}
return mask;