Checkpatch emits CHECK: Blank lines aren't necessary before a close
brace '}'. Previous attempts were made to make uniform the error
handling in dgnc but improvements are still possible.
Undo whitespace changes that should not have been made :(. Make return
statement placement uniform throughout dgnc. Fix checkpatch
CHECK. Make whitespace changes only.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 failed:
        kfree(brd);
+
        return ERR_PTR(rc);
 }
 
        brd->dpastatus = BD_RUNNING;
 
        dgnc_board[dgnc_num_boards++] = brd;
+
        return 0;
 
 free_irq:
        dgnc_tty_unregister(brd);
 failed:
        kfree(brd);
+
        return rc;
 }
 
        spin_unlock_irqrestore(&dgnc_poll_lock, flags);
 
        add_timer(&dgnc_poll_timer);
+
        return 0;
 
 failed_device:
        class_destroy(dgnc_class);
 failed_class:
        unregister_chrdev(dgnc_major, "dgnc");
+
        return rc;
 }
 
                cleanup();
                return rc;
        }
-
        return 0;
 }
 
 
 
 out:
        spin_unlock_irqrestore(&dgnc_global_lock, flags);
+
        return rc;
 }
 
 
 out:
        spin_unlock_irqrestore(&dgnc_global_lock, flags);
+
        return rc;
 }
 
                break;
        }
        }
-
        return 0;
 }
 
        tty_unregister_driver(brd->serial_driver);
 free_serial_driver:
        put_tty_driver(brd->serial_driver);
+
        return rc;
 }
 
                kfree(brd->channels[i]);
                brd->channels[i] = NULL;
        }
+
        return rc;
 }
 
 
 err_brd_unlock:
        spin_unlock_irqrestore(&brd->bd_lock, flags);
+
        return rc;
 err_ch_unlock:
        spin_unlock_irqrestore(&ch->ch_lock, flags);
-       return rc;
 
+       return rc;
 }
 
 /*
        ch->ch_wopen--;
 
        spin_unlock_irqrestore(&ch->ch_lock, flags);
+
        return rc;
 }
 
 
 exit_retry:
        spin_unlock_irqrestore(&ch->ch_lock, flags);
+
        return 0;
 }
 
                        return -ENODEV;
 
                rc = ch_bd_ops->drain(tty, 0);
-
                if (rc)
                        return -EINTR;
 
        }
 err_unlock:
        spin_unlock_irqrestore(&ch->ch_lock, flags);
+
        return rc;
 }