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:
parent
324cdf294d
commit
f9f5953b2d
@ -251,11 +251,7 @@ static int
|
|||||||
fd_map_bo(struct buffer *buf)
|
fd_map_bo(struct buffer *buf)
|
||||||
{
|
{
|
||||||
buf->mmap = fd_bo_map(buf->fd_bo);
|
buf->mmap = fd_bo_map(buf->fd_bo);
|
||||||
|
return buf->mmap != NULL;
|
||||||
if (buf->mmap != NULL)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user