lkml.org 
[lkml]   [2014]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v3 2/2] staging: serqt_usb2: Clean up initializations of variables.
    Use a more common kernel coding style.

    Signed-off-by: Thomas Vegas <thomas_75@safe-mail.net>
    ---
    drivers/staging/serqt_usb2/serqt_usb2.c | 15 ++++-----------
    1 file changed, 4 insertions(+), 11 deletions(-)

    diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
    index a04cfc3..35d84fd 100644
    --- a/drivers/staging/serqt_usb2/serqt_usb2.c
    +++ b/drivers/staging/serqt_usb2/serqt_usb2.c
    @@ -990,18 +990,11 @@ static void qt_block_until_empty(struct tty_struct *tty,
    static void qt_close(struct usb_serial_port *port)
    {
    struct usb_serial *serial = port->serial;
    - struct quatech_port *qt_port;
    - struct quatech_port *port0;
    - struct tty_struct *tty;
    + struct tty_struct *tty = tty_port_tty_get(&port->port);
    + unsigned int index = port->port_number;
    + struct quatech_port *qt_port = qt_get_port_private(port);
    + struct quatech_port *port0 = qt_get_port_private(serial->port[0]);
    int status;
    - unsigned int index;
    - status = 0;
    -
    - tty = tty_port_tty_get(&port->port);
    - index = port->port_number;
    -
    - qt_port = qt_get_port_private(port);
    - port0 = qt_get_port_private(serial->port[0]);

    /* shutdown any bulk reads that might be going on */
    if (serial->num_bulk_out)
    --
    1.8.3.2


    \
     
     \ /
      Last update: 2014-03-31 21:01    [W:3.663 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site