From 32a6949c63a0dc302b5f6299dbcc2a5ce233a059 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 30 Aug 2011 15:47:28 -0400 Subject: fsmc-stress-test.cpp: Eliminating unnecessary variable. --- examples/fsmc-stress-test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/fsmc-stress-test.cpp b/examples/fsmc-stress-test.cpp index 0cb9d30..6e986b3 100644 --- a/examples/fsmc-stress-test.cpp +++ b/examples/fsmc-stress-test.cpp @@ -104,14 +104,12 @@ bool simple_roundtrip(void); void loop() { uint32 last; - bool ok = true; bool (*test)(void) = stress_test; last = millis(); while (true) { bool result = test(); - ok = ok && result; - if (!ok) { + if (!result) { SerialUSB.println("Halting due to error."); throb(); } else { -- cgit v1.2.3