mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium/auxiliary: fix new gcc6 warnings
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c: In function ‘mm_bufmgr_create_from_buffer’:
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c:288:4:
warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
if(mm->map)
^~
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c:286:1: note:
...this ‘if’ clause, but it is not
if(mm->heap)
^~
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
bba836ea6a
commit
5051d85b03
1 changed files with 2 additions and 2 deletions
|
|
@ -283,8 +283,8 @@ mm_bufmgr_create_from_buffer(struct pb_buffer *buffer,
|
|||
return SUPER(mm);
|
||||
|
||||
failure:
|
||||
if(mm->heap)
|
||||
u_mmDestroy(mm->heap);
|
||||
if(mm->heap)
|
||||
u_mmDestroy(mm->heap);
|
||||
if(mm->map)
|
||||
pb_unmap(mm->buffer);
|
||||
FREE(mm);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue