dinput: Don't check a parameter twice (Coccinelle).
This commit is contained in:
parent
46abd44f0e
commit
ff4047a956
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue