From cbe36354790bd9c6eebad7ffe9de202cd33f63c0 Mon Sep 17 00:00:00 2001 From: li-tiangang4 Date: Mon, 13 Jan 2025 16:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8UT=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=EF=BC=8C=E9=87=8D=E5=A4=8D=E5=85=B3=E9=97=ADfd?= 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 6dd34c2..4628c0c 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -567,7 +567,6 @@ int32_t InputHub::OpenInputDeviceLocked(const std::string &devicePath) RecordDeviceLog(devicePath, device->identifier); std::string descriptor = device->identifier.descriptor; if (MakeDevice(fd, std::move(device)) < 0) { - CloseFd(fd); if (IsNeedPrintLog(descriptor)) { DHLOGI("Opening device error: %{public}s", devicePath.c_str()); }