UPSTREAM: rmi4update: fix uninitialized variable warning
Signed-off-by: Benson Leung <bleung@google.com>
Bug: 24809436
(cherry picked from commit 757b6f6c072b023dd42d71dfb65417987a611234)
Change-Id: I57d6cd10f0d775fc4dfdbe51fd8b76ba4038eef6
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp
index b846230..3e129aa 100644
--- a/rmi4update/rmi4update.cpp
+++ b/rmi4update/rmi4update.cpp
@@ -480,7 +480,7 @@
*/
int RMI4Update::WaitForIdle(int timeout_ms, bool readF34OnSucess)
{
- int rc;
+ int rc = 0;
struct timeval tv;
if (timeout_ms > 0) {