[PATCH 0/2] TTY cleanups - Kernel

This is a discussion on [PATCH 0/2] TTY cleanups - Kernel ; Two small tty clean ups. --- Alan Cox (1): tty_driver: Update required method documentation Gustavo Fernando Padovan (1): removed unused var real_tty on n_tty_ioctl() drivers/char/tty_ioctl.c | 7 ------- include/linux/tty_driver.h | 5 ++--- 2 files changed, 2 insertions(+), 10 deletions(-) -- ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH 0/2] TTY cleanups

  1. [PATCH 0/2] TTY cleanups

    Two small tty clean ups.

    ---

    Alan Cox (1):
    tty_driver: Update required method documentation

    Gustavo Fernando Padovan (1):
    removed unused var real_tty on n_tty_ioctl()


    drivers/char/tty_ioctl.c | 7 -------
    include/linux/tty_driver.h | 5 ++---
    2 files changed, 2 insertions(+), 10 deletions(-)

    --
    With trembling hands he unfurled the ancient cracked parchment, this was
    the place, it had to be. Uncertainly he began to mumble the chant "rdbms,
    sql , third normal form, java, table, scalable". Something moved..
    >From outside they heard a scream and a thud. The sales department had awoken


    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl()

    From: Gustavo Fernando Padovan

    Hello,

    I noted that the 'struct tty_struct *real_tty' is not used in this
    function, so I removed the code about 'real_tty'. This little change
    is on kernel 2.6.25.4, but aplies on 2.6.24 or greater.

    Signed-off-by: Gustavo Fernando Padovan
    Acked-by: Alan Cox
    ---

    drivers/char/tty_ioctl.c | 7 -------
    1 files changed, 0 insertions(+), 7 deletions(-)


    diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c
    index b1a757a..8f81139 100644
    --- a/drivers/char/tty_ioctl.c
    +++ b/drivers/char/tty_ioctl.c
    @@ -981,16 +981,9 @@ EXPORT_SYMBOL_GPL(tty_perform_flush);
    int n_tty_ioctl(struct tty_struct *tty, struct file *file,
    unsigned int cmd, unsigned long arg)
    {
    - struct tty_struct *real_tty;
    unsigned long flags;
    int retval;

    - if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
    - tty->driver->subtype == PTY_TYPE_MASTER)
    - real_tty = tty->link;
    - else
    - real_tty = tty;
    -
    switch (cmd) {
    case TCXONC:
    retval = tty_check_change(tty);

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread