Automated import from //branches/cupcake/...@142663,142663

This commit is contained in:
Dianne Hackborn
2009-03-25 15:32:28 -07:00
committed by The Android Open Source Project
parent 2f847b9e05
commit 19f06fefc0

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;
}