mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 16:18:18 +02:00
draw: Remove draw_install_aaline_stage dead code.
Remove dead code left over from commit dbb2cf388b ("draw: simplify
(and correct) aaline fallback (v2)").
Fix defect reported by Coverity Scan.
Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement:
(*aaline->stage.destroy)(&a....
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7265>
This commit is contained in:
parent
0a4c1db926
commit
a575bb1369
1 changed files with 1 additions and 7 deletions
|
|
@ -747,7 +747,7 @@ draw_install_aaline_stage(struct draw_context *draw, struct pipe_context *pipe)
|
|||
*/
|
||||
aaline = draw_aaline_stage(draw);
|
||||
if (!aaline)
|
||||
goto fail;
|
||||
return FALSE;
|
||||
|
||||
/* save original driver functions */
|
||||
aaline->driver_create_fs_state = pipe->create_fs_state;
|
||||
|
|
@ -764,10 +764,4 @@ draw_install_aaline_stage(struct draw_context *draw, struct pipe_context *pipe)
|
|||
draw->pipeline.aaline = &aaline->stage;
|
||||
|
||||
return TRUE;
|
||||
|
||||
fail:
|
||||
if (aaline)
|
||||
aaline->stage.destroy(&aaline->stage);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue