summaryrefslogtreecommitdiffstats
path: root/input/fakehid.c
diff options
context:
space:
mode:
authorCidorvan Leite <cidorvan.leite@openbossa.org>2008-05-27 19:44:49 +0000
committerCidorvan Leite <cidorvan.leite@openbossa.org>2008-05-27 19:44:49 +0000
commitdea62fb2e9e09e8083e126f6f177e6f85aa7b186 (patch)
treeeec5e6efcf623c4e1efbb8d84198ca051b10992d /input/fakehid.c
parenta7bc44bcbad838b8da5ab279a11075ae4f6f1418 (diff)
Added missing braces
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));