зеркало из https://github.com/mozilla/gecko-dev.git
Bug 758097: fix false warnings in debug build when reading switch uevent. r=mwu
This commit is contained in:
Родитель
071c55a7bc
Коммит
f7f091cba7
|
@ -146,9 +146,8 @@ private:
|
|||
}
|
||||
|
||||
SwitchDevice ProcessEvent(const NetlinkEvent& event, const char** name, const char** state) {
|
||||
bool rv = GetEventInfo(event, name, state);
|
||||
NS_ENSURE_TRUE(rv, SWITCH_DEVICE_UNKNOWN);
|
||||
return NameToDevice(*name);
|
||||
return GetEventInfo(event, name, state) ?
|
||||
NameToDevice(*name) : SWITCH_DEVICE_UNKNOWN;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче