commit | a97c6fecdbe576b732a2ca00fbf4dcb82f079c8f | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jan 14 07:52:15 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jan 14 07:52:15 2014 +0000 |
tree | 413be84d435da10b3fe71073fdbc6a538d805f7b | |
parent | e0c252ae43490cc324b89f6d7cbaa33af8ff341d [diff] | |
parent | f7d761ca34578d662d87bc1f883f6eacad86bf51 [diff] |
Merge "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; }