diff --git a/clients/simple-dmabuf-drm.c b/clients/simple-dmabuf-drm.c index 19e8dbb1..cb04622f 100644 --- a/clients/simple-dmabuf-drm.c +++ b/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