mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-20 21:41:02 -04:00
@@ -560,7 +560,6 @@ int32_t InputHub::OpenInputDeviceLocked(const std::string &devicePath)
|
||||
std::unique_ptr<Device> device = std::make_unique<Device>(fd, devicePath);
|
||||
|
||||
if (QueryInputDeviceInfo(fd, device) < 0) {
|
||||
CloseFd(fd);
|
||||
return ERR_DH_INPUT_HUB_QUERY_INPUT_DEVICE_INFO_FAIL;
|
||||
}
|
||||
GenerateDescriptor(device->identifier);
|
||||
|
||||
Reference in New Issue
Block a user