summaryrefslogtreecommitdiffstats
path: root/input/fakehid.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/fakehid.c')
-rw-r--r--input/fakehid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/fakehid.c b/input/fakehid.c
index 44c3ff6d..d752d85a 100644
--- a/input/fakehid.c
+++ b/input/fakehid.c
@@ -305,12 +305,13 @@ static int ps3remote_setup_uinput(struct fake_input *fake,
fake->uinput = open("/dev/input/uinput", O_RDWR);
if (fake->uinput < 0) {
fake->uinput = open("/dev/uinput", O_RDWR);
- if (fake->uinput < 0)
+ if (fake->uinput < 0) {
fake->uinput = open("/dev/misc/uinput", O_RDWR);
if (fake->uinput < 0) {
error("Error opening uinput device file");
return 1;
}
+ }
}
memset(&dev, 0, sizeof(dev));