Merge "Don't check a staticly allocated array for null."

This commit is contained in:
Dan Albert
2014-09-10 17:31:55 +00:00
committed by Gerrit Code Review

View File

@@ -1381,7 +1381,7 @@ void EventHub::releaseControllerNumberLocked(Device* device) {
bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
if (!device->keyMap.haveKeyLayout() || !device->keyBitmask) {
if (!device->keyMap.haveKeyLayout()) {
return false;
}