]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: drivers: pcl812.c: add curly braces for checkpatch
authorKumar Amit Mehta <gmate.amit@gmail.com>
Fri, 4 Apr 2014 15:44:44 +0000 (18:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:26 +0000 (08:29 -0700)
Kernel style is that if one side of the if else statement gets has curly
braces then both side should have them.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl812.c

index 160eac8083db16fb6a5b6f8bb5eaeacfa7686a12..5cc01fe45cf2367f914009f411dd6a53be74680b 100644 (file)
@@ -811,8 +811,9 @@ static int pcl812_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
                                devpriv->ai_dma = 0;
                                break;
                        }
-       } else
+       } else {
                devpriv->ai_dma = 0;
+       }
 
        devpriv->ai_act_scan = 0;
        devpriv->ai_poll_ptr = 0;