staging: comedi: fix brace coding style issues
authorGüngör Erseymen <gelurine@gmail.com>
Tue, 11 Sep 2012 14:56:42 +0000 (17:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:12:07 +0000 (12:12 -0700)
Fix coding style issues by removing unnecessary braces.

Signed-off-by: Güngör Erseymen <gelurine@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c

index 5e91444b7d3d3a024add3f407ce5510511e26da0..2c21dbd89455361debf6979755921bb9fbef0df9 100644 (file)
@@ -159,9 +159,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                return -EBUSY;
 
        for (driv = comedi_drivers; driv; driv = driv->next) {
-               if (!try_module_get(driv->module)) {
+               if (!try_module_get(driv->module))
                        continue;
-               }
                if (driv->num_names) {
                        dev->board_ptr = comedi_recognize(driv, it->board_name);
                        if (dev->board_ptr)
@@ -174,9 +173,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                /*  recognize has failed if we get here */
                /*  report valid board names before returning error */
                for (driv = comedi_drivers; driv; driv = driv->next) {
-                       if (!try_module_get(driv->module)) {
+                       if (!try_module_get(driv->module))
                                continue;
-                       }
                        comedi_report_boards(driv);
                        module_put(driv->module);
                }