power: Directly compare chars
Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64
diff --git a/power/power.c b/power/power.c
index 25aa3d6..66ad166 100644
--- a/power/power.c
+++ b/power/power.c
@@ -310,7 +310,6 @@
{
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 @@
* (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;