diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 6288aa7f27d1a38209374d02234332f0a84f59bd..6dd34c2fd19ed89c5191f16e5912ddf7fc203dae 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -560,7 +560,6 @@ int32_t InputHub::OpenInputDeviceLocked(const std::string &devicePath) std::unique_ptr device = std::make_unique(fd, devicePath); if (QueryInputDeviceInfo(fd, device) < 0) { - CloseFd(fd); return ERR_DH_INPUT_HUB_QUERY_INPUT_DEVICE_INFO_FAIL; } GenerateDescriptor(device->identifier);