Fix undefined error in LOG_ALWAYS_FATAL_IF.
Found by static analyzer.
New LOG_ALWAYS_FATAL_IF definition checks its arguments.
Bug: 111850071
Test: build with WTIH_TIDY=1
Change-Id: I6056cc38f76d022b4cf7660901903b33770abd79
diff --git a/libhidlcache/MemoryDealer.cpp b/libhidlcache/MemoryDealer.cpp
index dea7bc7..e0e18c7 100644
--- a/libhidlcache/MemoryDealer.cpp
+++ b/libhidlcache/MemoryDealer.cpp
@@ -123,7 +123,7 @@
// and generates a false positive warning about accessing
// memory that is already freed.
// Add an "assert" to avoid the confusion.
- LOG_ALWAYS_FATAL_IF(mList.head() == removed);
+ LOG_ALWAYS_FATAL_IF(mList.front() == removed);
#endif
delete removed;
}