Commit 7d6069d7 authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

staging: dgap: Fix indent errs as reported by checkpatch

This patch fixes all indent errs in dgap.c as reported by checkpatch
Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf42c34d
...@@ -576,7 +576,10 @@ static int dgap_start(void) ...@@ -576,7 +576,10 @@ static int dgap_start(void)
dgap_driver_start = TRUE; dgap_driver_start = TRUE;
/* make sure that the globals are init'd before we do anything else */ /*
* make sure that the globals are
* init'd before we do anything else
*/
dgap_init_globals(); dgap_init_globals();
dgap_NumBoards = 0; dgap_NumBoards = 0;
...@@ -726,7 +729,7 @@ static void dgap_cleanup_board(struct board_t *brd) ...@@ -726,7 +729,7 @@ static void dgap_cleanup_board(struct board_t *brd)
{ {
int i = 0; int i = 0;
if(!brd || brd->magic != DGAP_BOARD_MAGIC) if (!brd || brd->magic != DGAP_BOARD_MAGIC)
return; return;
if (brd->intr_used && brd->irq) if (brd->intr_used && brd->irq)
...@@ -1847,8 +1850,10 @@ static void dgap_input(struct channel_t *ch) ...@@ -1847,8 +1850,10 @@ static void dgap_input(struct channel_t *ch)
* If the device is not open, or CREAD is off, flush * If the device is not open, or CREAD is off, flush
* input data and return immediately. * input data and return immediately.
*/ */
if ((bd->state != BOARD_READY) || !tp || (tp->magic != TTY_MAGIC) || if ((bd->state != BOARD_READY) || !tp ||
!(ch->ch_tun.un_flags & UN_ISOPEN) || !(tp->termios.c_cflag & CREAD) || (tp->magic != TTY_MAGIC) ||
!(ch->ch_tun.un_flags & UN_ISOPEN) ||
!(tp->termios.c_cflag & CREAD) ||
(ch->ch_tun.un_flags & UN_CLOSING)) { (ch->ch_tun.un_flags & UN_CLOSING)) {
writew(head, &(bs->rx_tail)); writew(head, &(bs->rx_tail));
...@@ -2848,7 +2853,8 @@ static int dgap_tty_write_room(struct tty_struct *tty) ...@@ -2848,7 +2853,8 @@ static int dgap_tty_write_room(struct tty_struct *tty)
head = readw(&(bs->tx_head)) & tmask; head = readw(&(bs->tx_head)) & tmask;
tail = readw(&(bs->tx_tail)) & tmask; tail = readw(&(bs->tx_tail)) & tmask;
if ((ret = tail - head - 1) < 0) ret = tail - head - 1;
if (ret < 0)
ret += ch->ch_tsize; ret += ch->ch_tsize;
/* Limit printer to maxcps */ /* Limit printer to maxcps */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment