From 00c5e4c9ea199cff051eae9c78a0887430673dc4 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Wed, 8 Dec 2021 10:15:04 -0800 Subject: [PATCH] storaged: Fix bug in empty check Test: TreeHugger Bug: 208543110 Change-Id: I89610a1e9e8f6bab57bab593132365f88d4adc76 --- storaged/storaged_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storaged/storaged_info.cpp b/storaged/storaged_info.cpp index 33500db2d..3e646e006 100644 --- a/storaged/storaged_info.cpp +++ b/storaged/storaged_info.cpp @@ -328,7 +328,7 @@ void health_storage_info_t::report() { vector halInfos; auto ret = mHealth->getStorageInfo(&halInfos); if (ret.isOk()) { - if (halInfos.size() == 0) { + if (halInfos.size() != 0) { set_values_from_hal_storage_info(halInfos[0]); publish(); return;