Skip to content

Commit 0d029ab

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: n_tty: make flow of n_tty_receive_buf_common() a bool
The 'flow' parameter of n_tty_receive_buf_common() is meant to be a boolean value. So use bool and alter call sites accordingly. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent db726a2 commit 0d029ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/tty/n_tty.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ static void __receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp,
16651665
*/
16661666
static size_t
16671667
n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp, const u8 *fp,
1668-
int count, int flow)
1668+
int count, bool flow)
16691669
{
16701670
struct n_tty_data *ldata = tty->disc_data;
16711671
size_t rcvd = 0;
@@ -1748,13 +1748,13 @@ n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp, const u8 *fp,
17481748
static void n_tty_receive_buf(struct tty_struct *tty, const u8 *cp,
17491749
const u8 *fp, size_t count)
17501750
{
1751-
n_tty_receive_buf_common(tty, cp, fp, count, 0);
1751+
n_tty_receive_buf_common(tty, cp, fp, count, false);
17521752
}
17531753

17541754
static size_t n_tty_receive_buf2(struct tty_struct *tty, const u8 *cp,
17551755
const u8 *fp, size_t count)
17561756
{
1757-
return n_tty_receive_buf_common(tty, cp, fp, count, 1);
1757+
return n_tty_receive_buf_common(tty, cp, fp, count, true);
17581758
}
17591759

17601760
/**

0 commit comments

Comments
 (0)