am 947a6adf: Merge "Remove comparisons that can\'t be true"

* commit '947a6adf97d9ba86e3ef5704d523b4971246ff1e':
  Remove comparisons that can't be true
This commit is contained in:
Chih-hung Hsieh 2014-11-18 00:23:08 +00:00 committed by Android Git Automerger
commit accddd9ca0
1 changed files with 2 additions and 2 deletions

View File

@ -1443,7 +1443,7 @@ void EventHub::setLedForController(Device* device) {
}
bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
if (!device->keyMap.haveKeyLayout() || !device->keyBitmask) {
if (!device->keyMap.haveKeyLayout()) {
return false;
}
@ -1461,7 +1461,7 @@ bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
}
status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const {
if (!device->keyMap.haveKeyLayout() || !device->ledBitmask) {
if (!device->keyMap.haveKeyLayout()) {
return NAME_NOT_FOUND;
}