diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2014-10-14 15:05:44 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2014-10-14 15:11:07 -0700 |
commit | 199449a4c52ff30e2804ab0bccf99b466c594c7c (patch) | |
tree | dee53646275971cd5ce1512ad2cba1b65e6294d9 /6515 | |
parent | 670dfdf96e62446e763f60c7c315fd7e25461242 (diff) | |
download | invensense-199449a4c52ff30e2804ab0bccf99b466c594c7c.tar.gz |
sensors: mpu6515: fix memory corruption bug
Remove some superfluous code causing memory corruption.
Bug: 17990213
Change-Id: I3a6b867a9b00df5638fb87d0eb454027b98617c5
Diffstat (limited to '6515')
-rwxr-xr-x | 6515/libsensors_iio/sensors_mpl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/6515/libsensors_iio/sensors_mpl.cpp b/6515/libsensors_iio/sensors_mpl.cpp index 3e1ff52..2df1a8b 100755 --- a/6515/libsensors_iio/sensors_mpl.cpp +++ b/6515/libsensors_iio/sensors_mpl.cpp @@ -299,14 +299,6 @@ int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) data += nb; } } - - if (mPollFds[numSensorDrivers].revents & POLLIN) { - char msg; - int result = read(mPollFds[numSensorDrivers].fd, &msg, 1); - LOGE_IF(result < 0, - "error reading from wake pipe (%s)", strerror(errno)); - mPollFds[numSensorDrivers].revents = 0; - } } return nbEvents; } |