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 <s...@mess.org>
---
 utils/keytable/keytable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 634f4561..5572072a 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1448,7 +1448,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);
-- 
2.11.0

Reply via email to