freedreno: change to goto fail

in fd_resource_transfer_map, like the others error cases

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Serge Martin 2015-12-06 15:32:16 +01:00 committed by Rob Clark
parent e63fec29a1
commit 0149e7a944
1 changed files with 2 additions and 4 deletions

View File

@ -337,10 +337,8 @@ fd_resource_transfer_map(struct pipe_context *pctx,
}
buf = fd_bo_map(rsc->bo);
if (!buf) {
fd_resource_transfer_unmap(pctx, ptrans);
return NULL;
}
if (!buf)
goto fail;
offset = slice->offset +
box->y / util_format_get_blockheight(format) * ptrans->stride +