aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2015-10-12 13:48:30 -0700
committerBenson Leung <bleung@google.com>2015-10-16 14:51:37 -0700
commitbfe164f231db37ecb98321a50f1850f78bd98979 (patch)
tree576ecf9064aaab1c322e7ffb6a3431ccd9eec97d
parent83b0e1f8585ba596514405fc11bbd10786ce8d93 (diff)
downloadplatform_external_rmi4utils-bfe164f231db37ecb98321a50f1850f78bd98979.tar.gz
platform_external_rmi4utils-bfe164f231db37ecb98321a50f1850f78bd98979.tar.bz2
platform_external_rmi4utils-bfe164f231db37ecb98321a50f1850f78bd98979.zip
UPSTREAM: rmi4update: fix uninitialized variable warning
Signed-off-by: Benson Leung <bleung@google.com> Bug: 24809436 (cherry picked from commit 757b6f6c072b023dd42d71dfb65417987a611234) Change-Id: I57d6cd10f0d775fc4dfdbe51fd8b76ba4038eef6
-rw-r--r--rmi4update/rmi4update.cpp2
1 files changed, 1 insertions, 1 deletions
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::WriteBlocks(unsigned char *block, unsigned short count, unsigned
*/
int RMI4Update::WaitForIdle(int timeout_ms, bool readF34OnSucess)
{
- int rc;
+ int rc = 0;
struct timeval tv;
if (timeout_ms > 0) {