pContextMem has already been checked and cannot be NULL.
Fix defect reported by Coverity Scan.
Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: return tsCtx;
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6857>
}
HANDLE tsCtx = pContextMem;
- if (!tsCtx)
- {
- return tsCtx;
- }
SWR_TS* pTessellator = new (tsCtx) SWR_TS();
SWR_ASSERT(pTessellator == tsCtx);