mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
drivers/tty: Remove unneeded spaces
coding style fixes in n_tty.c Signed-off-by: Maximilian Krger <maxfragg@gmail.com> Signed-off-by: Thorsten Wimann <re06huxa@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ee815f3a76
commit
bbd20759d1
@ -61,7 +61,7 @@
|
|||||||
* controlling the space in the read buffer.
|
* controlling the space in the read buffer.
|
||||||
*/
|
*/
|
||||||
#define TTY_THRESHOLD_THROTTLE 128 /* now based on remaining room */
|
#define TTY_THRESHOLD_THROTTLE 128 /* now based on remaining room */
|
||||||
#define TTY_THRESHOLD_UNTHROTTLE 128
|
#define TTY_THRESHOLD_UNTHROTTLE 128
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Special byte codes used in the echo buffer to represent operations
|
* Special byte codes used in the echo buffer to represent operations
|
||||||
@ -405,7 +405,7 @@ static ssize_t process_output_block(struct tty_struct *tty,
|
|||||||
const unsigned char *buf, unsigned int nr)
|
const unsigned char *buf, unsigned int nr)
|
||||||
{
|
{
|
||||||
int space;
|
int space;
|
||||||
int i;
|
int i;
|
||||||
const unsigned char *cp;
|
const unsigned char *cp;
|
||||||
|
|
||||||
mutex_lock(&tty->output_lock);
|
mutex_lock(&tty->output_lock);
|
||||||
@ -1607,7 +1607,7 @@ static inline int input_available_p(struct tty_struct *tty, int amt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* copy_from_read_buf - copy read data directly
|
* copy_from_read_buf - copy read data directly
|
||||||
* @tty: terminal device
|
* @tty: terminal device
|
||||||
* @b: user data
|
* @b: user data
|
||||||
* @nr: size of data
|
* @nr: size of data
|
||||||
@ -1909,7 +1909,7 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file,
|
|||||||
if (nr)
|
if (nr)
|
||||||
clear_bit(TTY_PUSH, &tty->flags);
|
clear_bit(TTY_PUSH, &tty->flags);
|
||||||
} else if (test_and_clear_bit(TTY_PUSH, &tty->flags))
|
} else if (test_and_clear_bit(TTY_PUSH, &tty->flags))
|
||||||
goto do_it_again;
|
goto do_it_again;
|
||||||
|
|
||||||
n_tty_set_room(tty);
|
n_tty_set_room(tty);
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user