lkml.org 
[lkml]   [2004]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/15] New set of input patches: lkkbd simplify checks
    Date

    ===================================================================


    ChangeSet@1.1906, 2004-04-20 22:26:58-05:00, dtor_core@ameritech.net
    Input: simplify checks for supported serio port in lkkbd


    lkkbd.c | 4 +---
    1 files changed, 1 insertion(+), 3 deletions(-)


    ===================================================================



    diff -Nru a/drivers/input/keyboard/lkkbd.c b/drivers/input/keyboard/lkkbd.c
    --- a/drivers/input/keyboard/lkkbd.c Tue Apr 20 23:01:41 2004
    +++ b/drivers/input/keyboard/lkkbd.c Tue Apr 20 23:01:41 2004
    @@ -527,9 +527,7 @@

    if ((serio->type & SERIO_TYPE) != SERIO_RS232)
    return;
    - if (!(serio->type & SERIO_PROTO))
    - return;
    - if ((serio->type & SERIO_PROTO) && (serio->type & SERIO_PROTO) != SERIO_LKKBD)
    + if ((serio->type & SERIO_PROTO) != SERIO_LKKBD)
    return;

    if (!(lk = kmalloc (sizeof (struct lkkbd), GFP_KERNEL)))
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 14:02    [W:4.328 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site