Skip to content

Commit

Permalink
Fix CID 1157757 (Logically dead code)
Browse files Browse the repository at this point in the history
deviceNameStart cannot be NULL here.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 30, 2018
1 parent 36c985b commit 4cc103c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/opencl/openclwrapper.cpp
Expand Up @@ -447,10 +447,6 @@ static ds_status readProfileFromFile(ds_profile *profile,
driverVersionLength) == 0) {
deviceScoreStart =
findString(dataStart, contentEnd, DS_TAG_SCORE);
if (deviceNameStart == nullptr) {
status = DS_PROFILE_FILE_ERROR;
goto cleanup;
}
deviceScoreStart += strlen(DS_TAG_SCORE);
deviceScoreEnd =
findString(deviceScoreStart, contentEnd, DS_TAG_SCORE_END);
Expand Down

0 comments on commit 4cc103c

Please sign in to comment.