[PATCH 3/3] fakehid: Use the same constant as declared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 b12c526..e665869 100644
--- a/profiles/input/fakehid.c
+++ b/profiles/input/fakehid.c
@@ -328,7 +328,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) {
-- 
1.7.12


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux