am 2428eaa3: am a97c6fec: Merge "hardware: fix check for ro.hardware.<class> property"
* commit '2428eaa319bfd0481f49e364c4f242300f4ed291':
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;
}