Skip to content

Commit 2fb4822

Browse files
Jaime ArteagaCompute-Runtime-Automation
authored andcommitted
Remove unneeded variable
Change-Id: I1abc953063ed196bc045ef3084747a5328e7d443 Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
1 parent 3bcc073 commit 2fb4822

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel(ze_kernel_h
132132
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
133133
}
134134

135-
ze_result_t ret = appendLaunchKernelWithParams(hKernel, pThreadGroupDimensions,
136-
hEvent, false, false);
137-
if (ret != ZE_RESULT_SUCCESS) {
138-
return ret;
139-
}
140-
141-
return ret;
135+
return appendLaunchKernelWithParams(hKernel, pThreadGroupDimensions,
136+
hEvent, false, false);
142137
}
143138

144139
template <GFXCORE_FAMILY gfxCoreFamily>

0 commit comments

Comments
 (0)