mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
Description:Repair Cppcheck Alarm
Match-id-b13726638f74c5b363a91e154f858480c077c51a
This commit is contained in:
@@ -445,7 +445,7 @@ void InputHub::ScanInputDevices(const std::string& dirname)
|
||||
closedir(dir);
|
||||
}
|
||||
|
||||
void InputHub::CloseFd(int fd)
|
||||
void InputHub::CloseFd(int& fd)
|
||||
{
|
||||
if (fd < 0) {
|
||||
DHLOGE("No fd need to be closed.");
|
||||
|
||||
Reference in New Issue
Block a user