From ff4047a956ab6da62b11ed765b9dd636e06af5ff Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 12 Jan 2010 13:52:23 +0100 Subject: [PATCH] dinput: Don't check a parameter twice (Coccinelle). --- dlls/dinput/joystick_osx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/dinput/joystick_osx.c b/dlls/dinput/joystick_osx.c index 57a8559dd01..bc6908b0119 100644 --- a/dlls/dinput/joystick_osx.c +++ b/dlls/dinput/joystick_osx.c @@ -257,9 +257,6 @@ static int get_osx_device_name(int id, char *name, int length) tIOHIDDeviceRef = ( IOHIDDeviceRef ) CFArrayGetValueAtIndex( gDevices, id ); - if (!tIOHIDDeviceRef) - return 0; - if (name) name[0] = 0;