aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-08-03 11:34:02 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 09:27:01 -0400
commitfc6c1114fd6a5b6b643d49195d738b2bddb08153 (patch)
tree4178728cad6340ea2c4a6f7439f9ca135c35fd31
parentfe4d07817bc782543e969b041086e34af2b5018e (diff)
ir-keytable: do not fail at the first transmit-only device
It is not possible to list all rc devices without this, since it fails when ir-keytable encounters an rc device without an input device (ie. IR transmitters). Note that IR transmitters are not listed, but they are of no interest to ir-keytable anyway. Signed-off-by: Sean Young <sean@mess.org>
-rw-r--r--utils/keytable/keytable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 55abfc19..d9e521b7 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1450,7 +1450,7 @@ static int show_sysfs_attribs(struct rc_device *rc_dev)
for (cur = names; cur->next; cur = cur->next) {
if (cur->name) {
if (get_attribs(rc_dev, cur->name))
- return -1;
+ continue;
fprintf(stderr, _("Found %s (%s) with:\n"),
rc_dev->sysfs_name,
rc_dev->input_name);

Privacy Policy