diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-06-15 10:21:18 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-23 20:08:40 -0400 |
commit | 8cb06c983822103da1cfe57b9901e60a00e61f67 (patch) | |
tree | b0fd10af685e0ce0b57961d3cb4234c7ea4df3b4 /drivers/tty/n_tty.c | |
parent | 40d5e0905a03601d40cd4e46b8690093c2355d03 (diff) |
n_tty: Remove alias ptrs in __receive_buf()
The char and flag buffer local alias pointers, p and f, are
unnecessary; remove them.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 25aaf1afa221..d6eba99785c4 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c | |||
@@ -1485,8 +1485,7 @@ static void __receive_buf(struct tty_struct *tty, const unsigned char *cp, | |||
1485 | char *fp, int count) | 1485 | char *fp, int count) |
1486 | { | 1486 | { |
1487 | struct n_tty_data *ldata = tty->disc_data; | 1487 | struct n_tty_data *ldata = tty->disc_data; |
1488 | const unsigned char *p; | 1488 | char flags = TTY_NORMAL; |
1489 | char *f, flags = TTY_NORMAL; | ||
1490 | char buf[64]; | 1489 | char buf[64]; |
1491 | 1490 | ||
1492 | if (ldata->real_raw) { | 1491 | if (ldata->real_raw) { |
@@ -1508,19 +1507,19 @@ static void __receive_buf(struct tty_struct *tty, const unsigned char *cp, | |||
1508 | } else { | 1507 | } else { |
1509 | int i; | 1508 | int i; |
1510 | 1509 | ||
1511 | for (i = count, p = cp, f = fp; i; i--, p++) { | 1510 | for (i = count; i; i--, cp++) { |
1512 | if (f) | 1511 | if (fp) |
1513 | flags = *f++; | 1512 | flags = *fp++; |
1514 | switch (flags) { | 1513 | switch (flags) { |
1515 | case TTY_NORMAL: | 1514 | case TTY_NORMAL: |
1516 | n_tty_receive_char(tty, *p); | 1515 | n_tty_receive_char(tty, *cp); |
1517 | break; | 1516 | break; |
1518 | case TTY_BREAK: | 1517 | case TTY_BREAK: |
1519 | n_tty_receive_break(tty); | 1518 | n_tty_receive_break(tty); |
1520 | break; | 1519 | break; |
1521 | case TTY_PARITY: | 1520 | case TTY_PARITY: |
1522 | case TTY_FRAME: | 1521 | case TTY_FRAME: |
1523 | n_tty_receive_parity_error(tty, *p); | 1522 | n_tty_receive_parity_error(tty, *cp); |
1524 | break; | 1523 | break; |
1525 | case TTY_OVERRUN: | 1524 | case TTY_OVERRUN: |
1526 | n_tty_receive_overrun(tty); | 1525 | n_tty_receive_overrun(tty); |