backend-drm: change dmabuf_feedback_maybe_update() return type to void

As we are not using the returned value, so let's change to void.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2022-05-30 15:43:55 -03:00
parent 14ca04609a
commit 8fc9d68ffa
1 changed files with 4 additions and 6 deletions

View File

@ -335,7 +335,7 @@ drm_output_check_zpos_plane_states(struct drm_output_state *state)
}
}
static bool
static void
dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
uint32_t try_view_on_plane_failure_reasons)
{
@ -384,7 +384,7 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
(action_needed == ACTION_NEEDED_REMOVE_SCANOUT_TRANCHE &&
!scanout_tranche->active)) {
dmabuf_feedback->action_needed = ACTION_NEEDED_NONE;
return false;
return;
}
/* We hit this if:
@ -399,7 +399,7 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
dmabuf_feedback->action_needed != action_needed) {
clock_gettime(CLOCK_MONOTONIC, &dmabuf_feedback->timer);
dmabuf_feedback->action_needed = action_needed;
return false;
return;
/* Timer is already on and the action needed when it was set to on does
* not conflict with the most recent needed action we've detected. If
* more than MAX_TIME_SECONDS has passed, we need to resend the dma-buf
@ -409,7 +409,7 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
delta_time.tv_sec = current_time.tv_sec -
dmabuf_feedback->timer.tv_sec;
if (delta_time.tv_sec < MAX_TIME_SECONDS)
return false;
return;
}
/* If we got here it means that the timer has triggered, so we have
@ -429,8 +429,6 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
/* Set the timer to off */
dmabuf_feedback->action_needed = ACTION_NEEDED_NONE;
return true;
}
static struct drm_plane_state *