From d2f202b1160212c469ab77f8d09ba8a161852140 Mon Sep 17 00:00:00 2001 From: anusha GodavarthySurya Date: Tue, 19 Oct 2021 07:54:50 -0700 Subject: [PATCH] SWDEV-240806 - Fix compilation warning Change-Id: I1b540059b1e386bc7b6f4493226c45199542bfc3 --- hipamd/src/hip_memory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index 086e9ff33f..a6165fdc5a 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -2405,7 +2405,10 @@ hipError_t ihipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent } amd::HostQueue* queue = hip::getQueue(stream); std::vector commands; - ihipMemset3DCommand(commands, pitchedDevPtr, value, extent, queue); + status = ihipMemset3DCommand(commands, pitchedDevPtr, value, extent, queue); + if (status != hipSuccess) { + return status; + } for (auto& command : commands) { command->enqueue(); if (!isAsync) {