simple-dmabuf-drm: simplify fd_map_bo

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Guido Günther 2018-03-20 09:41:59 +01:00 committed by Pekka Paalanen
parent 324cdf294d
commit f9f5953b2d
1 changed files with 1 additions and 5 deletions

View File

@ -251,11 +251,7 @@ static int
fd_map_bo(struct buffer *buf)
{
buf->mmap = fd_bo_map(buf->fd_bo);
if (buf->mmap != NULL)
return 1;
return 0;
return buf->mmap != NULL;
}
static void