Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-x86power: Commit

hardware/x86power


Commit MetaInfo

Revisión50520a07ad50e005516a408a6d2b44163585cedc (tree)
Tiempo2017-05-23 11:02:48
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Simplify property_get to property_get_bool

Cambiar Resumen

Diferencia incremental

--- a/power.c
+++ b/power.c
@@ -57,7 +57,7 @@ static void power_init(struct power_module *module UNUSED)
5757 static void power_set_interactive(struct power_module *module UNUSED, int on)
5858 {
5959 char mod[PROPERTY_VALUE_MAX];
60- if ((!property_get("wlan.no-unload-driver", mod, NULL) || strcmp(mod, "1"))
60+ if (!property_get_bool("wlan.no-unload-driver", 0)
6161 && property_get("wlan.modname", mod, NULL)) {
6262 if (on) {
6363 if (insmod_by_dep(mod, "", NULL, 0, NULL)) {
Show on old repository browser