jni: Resolve equality comparisons with extraneous parentheses
Change-Id: Ie243bfb80422d56ec8ae801fb5c7bca8f78efa89
diff --git a/jni/ConfFileParser.cpp b/jni/ConfFileParser.cpp
index 0a0883a..912d40d 100644
--- a/jni/ConfFileParser.cpp
+++ b/jni/ConfFileParser.cpp
@@ -486,7 +486,7 @@
}
line = (char *)new_line;
}
- if((buf[i] == '\n')) {
+ if(buf[i] == '\n') {
has_carriage_rtn = false;
line[line_len] = '\0';
ret = parse_line(key_file, line, &cur_grp);
@@ -758,7 +758,7 @@
}
while((str != equal_start) && isalnum(*str))
str++;
- if((str == equal_start)) {
+ if(str == equal_start) {
key = (char *)malloc(sizeof(char) * (key_len + 1));
if(key == NULL) {
ALOGE("could not alloc memory for new key\n");