Skip to content

Commit

Permalink
staging: comedi: fix brace coding style issues
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Güngör Erseymen authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 293b048 commit 559e9a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
Expand Down

0 comments on commit 559e9a6

Please sign in to comment.