[zircon/ftl] Fix assert condition on debug path.
The current code asserts if there's an error reading the spare area
but fails to account for the possibility of a "soft" error (high
number of corrected bit flips)
This is left-over from code review 265928.
Change-Id: Ie224a6d6b1025979a874bff97e49b596266a3c15
diff --git a/zircon/system/ulib/ftl/ftln/ftln_util.c b/zircon/system/ulib/ftl/ftln/ftln_util.c
index dac7e38..4236523 100644
--- a/zircon/system/ulib/ftl/ftln/ftln_util.c
+++ b/zircon/system/ulib/ftl/ftln/ftln_util.c
@@ -628,9 +628,9 @@
DEC_USED(ftl->bdata[b]);
#if FTLN_DEBUG
- // Read page spare area (exit if error) and assert VPNs match.
+ // Read page spare area and assert VPNs match.
++ftl->stats.read_spare;
- PfAssert(ftl->read_spare(ftl->start_pn + pn, ftl->spare_buf, ftl->ndm) == 0);
+ PfAssert(ftl->read_spare(ftl->start_pn + pn, ftl->spare_buf, ftl->ndm) >= 0);
PfAssert(GET_SA_VPN(ftl->spare_buf) == vpn);
#endif
} //lint !e818