commit | 808e57e3f3af403f45d44c93da2e275d427f30cf | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Fri Mar 02 11:27:02 2018 -0500 |
committer | Yi Kong <yikong@google.com> | Fri Mar 02 18:42:03 2018 +0000 |
tree | a72e65ce5617784ddf2f4b6f752b83976892be76 | |
parent | fd42c098130890b86ba4bf7d717a0c16b3874bb4 [diff] |
healthd: Fix negativity check after cast to unsigned enum mapSysfsString return code is checked for negativity after being casted to unsigned enum type, which will always be false. This is obviously unintended behaviour. Fixes tautological-unsigned-enum-zero-compare warning. Bug: 72331526 Test: m Change-Id: Icec76d7a1121cb56fd9d05feb70cede69954c322