From a0cd08d73febc8b40c5c5957adf00ed593bd1dd1 Mon Sep 17 00:00:00 2001 From: li-tiangang4 Date: Wed, 4 Dec 2024 13:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dinput=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-tiangang4 --- common/include/input_hub.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 6288aa7..6dd34c2 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); -- Gitee