mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nv50: drop obsolete check from error path
At 'out_err' the nv50_context has been calloc-ated. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
e1e30f6dfb
commit
66fd5057d3
1 changed files with 7 additions and 9 deletions
|
|
@ -298,15 +298,13 @@ nv50_create(struct pipe_screen *pscreen, void *priv)
|
|||
return pipe;
|
||||
|
||||
out_err:
|
||||
if (nv50) {
|
||||
if (nv50->bufctx_3d)
|
||||
nouveau_bufctx_del(&nv50->bufctx_3d);
|
||||
if (nv50->bufctx)
|
||||
nouveau_bufctx_del(&nv50->bufctx);
|
||||
if (nv50->blit)
|
||||
FREE(nv50->blit);
|
||||
FREE(nv50);
|
||||
}
|
||||
if (nv50->bufctx_3d)
|
||||
nouveau_bufctx_del(&nv50->bufctx_3d);
|
||||
if (nv50->bufctx)
|
||||
nouveau_bufctx_del(&nv50->bufctx);
|
||||
if (nv50->blit)
|
||||
FREE(nv50->blit);
|
||||
FREE(nv50);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue