Skip to content

Commit

Permalink
wingray-common: power: cleanup tabs
Browse files Browse the repository at this point in the history
Change-Id: I388df1484f07fbca61e0575d2bdbb0346cdd8a8e
  • Loading branch information
TDR committed Jan 15, 2013
1 parent 940b990 commit 60fd013
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions power/power_stingray.c
Expand Up @@ -120,15 +120,15 @@ static int boostpulse_open(struct stingray_power_module *stingray) {
} else {
if (strncmp(governor, "interactive", 11) == 0)
stingray->boostpulse_fd = open(BOOSTPULSE_INTERACTIVE, O_WRONLY);
else if (strncmp(governor, "ondemand", 8) == 0)
else if (strncmp(governor, "ondemand", 8) == 0)
stingray->boostpulse_fd = open(BOOSTPULSE_ONDEMAND, O_WRONLY);

if (stingray->boostpulse_fd < 0 && !stingray->boostpulse_warned) {
strerror_r(errno, buf, sizeof(buf));
ALOGE("Error opening %s: %s\n", BOOSTPULSE_INTERACTIVE, buf);
stingray->boostpulse_warned = 1;
} else if (stingray->boostpulse_fd > 0)
ALOGD("Opened %s boostpulse interface", governor);
if (stingray->boostpulse_fd < 0 && !stingray->boostpulse_warned) {
strerror_r(errno, buf, sizeof(buf));
ALOGE("Error opening %s: %s\n", BOOSTPULSE_INTERACTIVE, buf);
stingray->boostpulse_warned = 1;
} else if (stingray->boostpulse_fd > 0)
ALOGD("Opened %s boostpulse interface", governor);
}
}

Expand Down

0 comments on commit 60fd013

Please sign in to comment.