Merge "Bluetooth AIDL: SetTerminalRaw on fd"

This commit is contained in:
Treehugger Robot
2023-04-28 19:29:33 +00:00
committed by Gerrit Code Review

View File

@@ -117,11 +117,9 @@ int BluetoothHci::getFdFromDevPath() {
strerror(errno));
return fd;
}
if (int ret = SetTerminalRaw(mFd) < 0) {
ALOGE("Could not make %s a raw terminal %d(%s)", mDevPath.c_str(), ret,
if (int ret = SetTerminalRaw(fd) < 0) {
ALOGI("Could not make %s a raw terminal %d(%s)", mDevPath.c_str(), ret,
strerror(errno));
::close(fd);
return -1;
}
return fd;
}