From 88a93b005330269776814e9c50322c2977f1d408 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 28 Aug 2020 19:59:31 +0200 Subject: [PATCH] Cleanups --- input/drivers_joypad/dinput_joypad.c | 4 ++-- input/drivers_joypad/udev_joypad.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/input/drivers_joypad/dinput_joypad.c b/input/drivers_joypad/dinput_joypad.c index 353cf43f48..6ded6e6644 100644 --- a/input/drivers_joypad/dinput_joypad.c +++ b/input/drivers_joypad/dinput_joypad.c @@ -57,8 +57,8 @@ static BOOL CALLBACK enum_joypad_cb(const DIDEVICEINSTANCE *inst, void *p) if (FAILED(IDirectInput8_CreateDevice( g_dinput_ctx, inst->guidInstance, pad, NULL))) #else - if (FAILED(IDirectInput8_CreateDevice( - g_dinput_ctx, &inst->guidInstance, pad, NULL))) + if (FAILED(IDirectInput8_CreateDevice( + g_dinput_ctx, &inst->guidInstance, pad, NULL))) #endif return DIENUM_CONTINUE; diff --git a/input/drivers_joypad/udev_joypad.c b/input/drivers_joypad/udev_joypad.c index 166452fb51..e693f2d554 100644 --- a/input/drivers_joypad/udev_joypad.c +++ b/input/drivers_joypad/udev_joypad.c @@ -175,7 +175,8 @@ static int udev_add_pad(struct udev_device *dev, unsigned p, int fd, const char pad->vid = pad->pid = 0; - if (ioctl(fd, EVIOCGID, &inputid) >= 0) { + if (ioctl(fd, EVIOCGID, &inputid) >= 0) + { pad->vid = inputid.vendor; pad->pid = inputid.product; }