[media] av7110: fix confusing indenting
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Mar 2014 08:26:03 +0000 (05:26 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 15:15:11 +0000 (12:15 -0300)
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>
drivers/media/pci/ttpci/av7110_av.c

index 301029ca45354f98fce4aa7035c1e1a287e1a77b..9544cfc06601373e85e40c40bd443d3c5461e572 100644 (file)
@@ -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;