Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+77 −71
Original line number Diff line number Diff line
@@ -576,7 +576,10 @@ static int dgap_start(void)

		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_NumBoards = 0;
@@ -1847,8 +1850,10 @@ static void dgap_input(struct channel_t *ch)
	 * If the device is not open, or CREAD is off, flush
	 * input data and return immediately.
	 */
	if ((bd->state != BOARD_READY) || !tp  || (tp->magic != TTY_MAGIC) ||
            !(ch->ch_tun.un_flags & UN_ISOPEN) || !(tp->termios.c_cflag & CREAD) ||
	if ((bd->state != BOARD_READY) || !tp  ||
	    (tp->magic != TTY_MAGIC) ||
	    !(ch->ch_tun.un_flags & UN_ISOPEN) ||
	    !(tp->termios.c_cflag & CREAD) ||
	    (ch->ch_tun.un_flags & UN_CLOSING)) {

		writew(head, &(bs->rx_tail));
@@ -2848,7 +2853,8 @@ static int dgap_tty_write_room(struct tty_struct *tty)
	head = readw(&(bs->tx_head)) & tmask;
	tail = readw(&(bs->tx_tail)) & tmask;

        if ((ret = tail - head - 1) < 0)
	ret = tail - head - 1;
	if (ret < 0)
		ret += ch->ch_tsize;

	/* Limit printer to maxcps */