aboutsummaryrefslogtreecommitdiffstats
path: root/utils/keytable/keytable.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/keytable/keytable.c')
-rw-r--r--utils/keytable/keytable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index d9e521b7..be569d4d 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -1037,10 +1037,8 @@ static int get_attribs(struct rc_device *rc_dev, char *sysfs_name)
event_names = seek_sysfs_dir(input_names->name, event);
free_names(input_names);
- if (!event_names) {
- free_names(event_names);
+ if (!event_names)
return EINVAL;
- }
if (event_names->next->next) {
free_names(event_names);
fprintf(stderr, _("Found more than one event interface. This is currently unsupported\n"));

Privacy Policy