aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/drm-atomic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/drm/drm-atomic.c b/backend/drm/drm-atomic.c
index 5d34cd48..16c9c5c3 100644
--- a/backend/drm/drm-atomic.c
+++ b/backend/drm/drm-atomic.c
@@ -57,8 +57,7 @@ static bool atomic_commit(int drm_fd, struct atomic *atom,
// Try to commit without new changes
drmModeAtomicSetCursor(atom->req, atom->cursor);
- ret = drmModeAtomicCommit(drm_fd, atom->req, flags, output);
- if (ret) {
+ if (drmModeAtomicCommit(drm_fd, atom->req, flags, output)) {
wlr_log_errno(L_ERROR, "%s: Atomic commit failed (%s)",
output->output.name, modeset ? "modeset" : "pageflip");
}