Automated import from //branches/master/...@142771,142771

This commit is contained in:
Dianne Hackborn
2009-03-25 16:21:55 -07:00
committed by The Android Open Source Project
parent 95518a712c
commit 4e829f0aca

View File

@@ -245,6 +245,7 @@ EventHub::device_t* EventHub::getDevice(int32_t deviceId) const
int32_t id = deviceId & ID_MASK;
if (id >= mNumDevicesById || id < 0) return NULL;
device_t* dev = mDevicesById[id].device;
if (dev == NULL) return NULL;
if (dev->id == deviceId) {
return dev;
}