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>
dev
Guido Günther 7 years ago committed by Pekka Paalanen
parent 324cdf294d
commit f9f5953b2d
  1. 6
      clients/simple-dmabuf-drm.c

@ -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

Loading…
Cancel
Save