Skip to content

Commit e071923

Browse files
committed
DLP: Remove un-necessary variables
This commit addresses amd#2 (comment) Signed-off-by: Abhiram S <abhiram.s@amd.com>
1 parent 0266b25 commit e071923

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

classic/frame/runtime/dlp_runtime.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,10 @@ dlp_thread_set_num_threads(md_t n_threads)
217217
void
218218
dlp_version_query(int* major, int* minor, int* patch)
219219
{
220-
char* AOCL_DLP_VERSION_MAJOR_STR = AOCL_DLP_VERSION_MAJOR;
221-
char* AOCL_DLP_VERSION_MINOR_STR = AOCL_DLP_VERSION_MINOR;
222-
char* AOCL_DLP_VERSION_PATCH_STR = AOCL_DLP_VERSION_PATCH;
223220
if (major)
224-
*major = atoi(AOCL_DLP_VERSION_MAJOR_STR);
221+
*major = atoi(AOCL_DLP_VERSION_MAJOR);
225222
if (minor)
226-
*minor = atoi(AOCL_DLP_VERSION_MINOR_STR);
223+
*minor = atoi(AOCL_DLP_VERSION_MINOR);
227224
if (patch)
228-
*patch = atoi(AOCL_DLP_VERSION_PATCH_STR);
225+
*patch = atoi(AOCL_DLP_VERSION_PATCH);
229226
}

0 commit comments

Comments
 (0)