From 51a51b8902642fa02ee8ac99e02428a9c28c846a Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 7 Sep 2012 12:01:22 +0100 Subject: [PATCH] fakehid: Use the same constant as declared ps3remote_keymap[] uses 0xff as the max value, so should we. --- profiles/input/fakehid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/input/fakehid.c b/profiles/input/fakehid.c index d9af2dd57..305a204cf 100644 --- a/profiles/input/fakehid.c +++ b/profiles/input/fakehid.c @@ -300,7 +300,7 @@ static int ps3remote_setup_uinput(struct fake_input *fake, } /* enabling keys */ - for (i = 0; i < 256; i++) + for (i = 0; i < 0xff; i++) if (ps3remote_keymap[i] != KEY_RESERVED) if (ioctl(fake->uinput, UI_SET_KEYBIT, ps3remote_keymap[i]) < 0) { -- 2.47.3