am cd3f545e: am 260b0f50: am 2428eaa3: am a97c6fec: Merge "hardware: fix check for ro.hardware.<class> property"
* commit 'cd3f545ef8e7ac8a622c3d53d8241ff25fdbe86e':
hardware: fix check for ro.hardware.<class> property
diff --git a/hardware.c b/hardware.c
index da89dd9..f835fda 100644
--- a/hardware.c
+++ b/hardware.c
@@ -160,7 +160,7 @@
/* First try a property specific to the class and possibly instance */
snprintf(prop_name, sizeof(prop_name), "ro.hardware.%s", name);
- if (property_get(prop_name, prop, NULL) == 0) {
+ if (property_get(prop_name, prop, NULL) > 0) {
if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
goto found;
}