Fix warning from default cppchek.

Этот коммит содержится в:
Ben Sander
2017-11-21 15:41:15 -06:00
родитель dac57ba854
Коммит 4313686d6e
2 изменённых файлов: 5 добавлений и 4 удалений
+2 -1
Просмотреть файл
@@ -1744,8 +1744,9 @@ hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* devPtr){
am_status_t status = hc::am_memtracker_getinfo( &amPointerInfo , devPtr );
if (status == AM_SUCCESS) {
psize = (size_t)amPointerInfo._sizeBytes;
} else
} else {
hipStatus = hipErrorInvalidResourceHandle;
}
ihipIpcMemHandle_t* iHandle = (ihipIpcMemHandle_t*) handle;
// Save the size of the pointer to hipIpcMemHandle
iHandle->psize = psize;