power: Directly compare chars

Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64
tirimbino
Christopher N. Hesse 8 years ago
parent e9b45af8b2
commit d928574407
  1. 3
      power/power.c

@ -310,7 +310,6 @@ static void samsung_power_set_interactive(struct power_module *module, int on)
{
struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module;
struct stat sb;
char buf[80];
char touchkey_node[2];
int rc;
@ -341,7 +340,7 @@ static void samsung_power_set_interactive(struct power_module *module, int on)
* (for example cmhw), which means we don't want them to be enabled when resuming
* from suspend.
*/
if ((touchkey_node[0] - '0') == 0) {
if (touchkey_node[0] == '0') {
samsung_pwr->touchkey_blocked = true;
} else {
samsung_pwr->touchkey_blocked = false;

Loading…
Cancel
Save