dinput: Don't check a parameter twice (Coccinelle).

This commit is contained in:
Paul Vriens 2010-01-12 13:52:23 +01:00 committed by Alexandre Julliard
parent 46abd44f0e
commit ff4047a956

View file

@ -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;