sdm: LLVM SA enablement

CRs-Fixed: 2077191
Change-Id: I23066befa5034523788a78edac9b335494d43019
This commit is contained in:
Ramakant Singh
2017-07-14 13:52:15 +05:30
committed by Gerrit - the friendly Code Review server
parent 78b2086266
commit 80a15d7484
9 changed files with 32 additions and 12 deletions

View File

@@ -264,10 +264,12 @@ int getDPTestConfig(uint32_t *panelBpp, uint32_t *patternType) {
while (getline(&line, &len, configFile) != -1) {
if (!parseLine(line, tokens, maxCount, &tokenCount)) {
if (!strncmp(tokens[0], "bpp", strlen("bpp"))) {
if (tokens[0] != NULL) {
if (!strncmp(tokens[0], "bpp", strlen("bpp"))) {
*panelBpp = static_cast<uint32_t>(atoi(tokens[1]));
} else if (!strncmp(tokens[0], "pattern", strlen("pattern"))) {
} else if (!strncmp(tokens[0], "pattern", strlen("pattern"))) {
*patternType = static_cast<uint32_t>(atoi(tokens[1]));
}
}
}
}