This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: ir-keytable: Fix the read logic, when protocol is V1
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Tue Jan 25 12:03:09 2011 -0200

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 utils/keytable/keytable.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=15bafedcc6026e292e48d53c6c8576852c9c115b

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index ea01266..92ad7ee 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1260,10 +1260,10 @@ static void display_table_v1(struct rc_device *rc_dev, 
int fd)
                        int codes[2];
 
                        codes[0] = (j << 8) | i;
-                       if (!ioctl(fd, EVIOCGKEYCODE, codes) && codes[1] != 
KEY_RESERVED)
-                               prtcode(codes);
-                       else
+                       if (ioctl(fd, EVIOCGKEYCODE, codes) == -1)
                                perror("EVIOCGKEYCODE");
+                       else if (codes[1] != KEY_RESERVED)
+                               prtcode(codes);
                }
        }
        display_proto(rc_dev);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to