mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
Cleanup SDL_UDEV_GetProductSerial()
This commit is contained in:
@@ -1609,10 +1609,7 @@ static bool LINUX_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
||||
}
|
||||
|
||||
#ifdef SDL_USE_LIBUDEV
|
||||
const char *serial = NULL;
|
||||
if (SDL_UDEV_GetProductSerial(item->path, &serial)) {
|
||||
joystick->serial = SDL_strdup(serial);
|
||||
}
|
||||
joystick->serial = SDL_UDEV_GetProductSerial(item->path);
|
||||
#endif
|
||||
|
||||
// mark joystick as fresh and ready
|
||||
|
||||
Reference in New Issue
Block a user