From: Dan Carpenter Date: Fri, 28 Mar 2014 08:26:03 +0000 (-0300) Subject: [media] av7110: fix confusing indenting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc8aacecf22922062e283b3032d5985af51e006a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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;