From: Dmitry Torokhov simplify checks for supported serio port in lkkbd --- 25-akpm/drivers/input/keyboard/lkkbd.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) diff -puN drivers/input/keyboard/lkkbd.c~new-set-of-input-patches-lkkbd-simplify-checks drivers/input/keyboard/lkkbd.c --- 25/drivers/input/keyboard/lkkbd.c~new-set-of-input-patches-lkkbd-simplify-checks 2004-04-21 00:22:27.666829288 -0700 +++ 25-akpm/drivers/input/keyboard/lkkbd.c 2004-04-21 00:22:27.670828680 -0700 @@ -527,9 +527,7 @@ lkkbd_connect (struct serio *serio, stru 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))) _