experiment: cppcheck cleanup
[experiments/drive.cpp:83] -> [experiments/drive.cpp:96]: (style)
Variable 'check' is reassigned a value before the old one has been used.
Change-Id: I241a2b38418ab89790d2d8762aaceb3cd080ad77
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/experiments/drive.cpp b/experiments/drive.cpp
index 3eed0a0..22fd4b6 100644
--- a/experiments/drive.cpp
+++ b/experiments/drive.cpp
@@ -80,7 +80,7 @@
while (reading)
{
- bool check = false;
+ bool check;
ReadReturn r0 = fan0->read();
ReadReturn r1 = fan1->read();
int64_t n0 = static_cast<int64_t>(r0.value);