From 63a0f428230208b9f3601eb7c99a08100c6f3a0b Mon Sep 17 00:00:00 2001 From: Aravind Akella Date: Fri, 24 Apr 2015 20:30:09 -0700 Subject: [PATCH] Build fix SensorEventQueue. Change-Id: I3e6ba031d42bd37067591771f378b7185169ab48 --- libs/gui/SensorEventQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/SensorEventQueue.cpp b/libs/gui/SensorEventQueue.cpp index b5b5d684d..8b2018f9a 100644 --- a/libs/gui/SensorEventQueue.cpp +++ b/libs/gui/SensorEventQueue.cpp @@ -154,7 +154,7 @@ status_t SensorEventQueue::injectSensorEvent(const ASensorEvent& event) { ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL); if (size < 0) { ALOGE("injectSensorEvent failure %zd %d", size, mSensorChannel->getFd()); - return size; + return INVALID_OPERATION; } return NO_ERROR; }