lkml.org 
[lkml]   [2010]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 31/41] CAPI: Drop handle_minor_recv from capinc_tty_write
    Date
    Sending a message down the CAPI stack may trigger the reception of an
    answer, but this will go through capi_recv_message and call
    handle_minor_recv from there. There is no need to walk the receive queue
    on capinc_tty_write.

    Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
    ---
    drivers/isdn/capi/capi.c | 1 -
    1 files changed, 0 insertions(+), 1 deletions(-)

    diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
    index 867589a..554fa1b 100644
    --- a/drivers/isdn/capi/capi.c
    +++ b/drivers/isdn/capi/capi.c
    @@ -1104,7 +1104,6 @@ static int capinc_tty_write(struct tty_struct *tty,
    skb_queue_tail(&mp->outqueue, skb);
    mp->outbytes += skb->len;
    (void)handle_minor_send(mp);
    - (void)handle_minor_recv(mp);
    spin_unlock_irqrestore(&workaround_lock, flags);
    return count;
    }
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2010-02-08 21:19    [W:0.020 / U:2.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site