Input: fix signedness warning in input_set_keycode()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Jul 2010 07:25:21 +0000 (00:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Jul 2010 08:23:51 +0000 (01:23 -0700)
The dev->getkeycode() method expects unsigned argument.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c

index 240ad39da5706697c7949eb5dbfd9fe3b7fb6da0..a3d5485154e7a30fc4572b4a4908158ecb460c93 100644 (file)
@@ -694,7 +694,7 @@ int input_set_keycode(struct input_dev *dev,
                      unsigned int scancode, unsigned int keycode)
 {
        unsigned long flags;
-       int old_keycode;
+       unsigned int old_keycode;
        int retval;
 
        if (keycode > KEY_MAX)