gallium/swr: Remove unreachable code.
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>
This commit is contained in:
@@ -166,10 +166,6 @@ INLINE HANDLE SWR_API
|
||||
}
|
||||
|
||||
HANDLE tsCtx = pContextMem;
|
||||
if (!tsCtx)
|
||||
{
|
||||
return tsCtx;
|
||||
}
|
||||
|
||||
SWR_TS* pTessellator = new (tsCtx) SWR_TS();
|
||||
SWR_ASSERT(pTessellator == tsCtx);
|
||||
|
Reference in New Issue
Block a user