mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
power: Directly compare chars
Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64
This commit is contained in:
parent
e9b45af8b2
commit
d928574407
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue