Merge "drm_hwcomposer: Merge remote-tracking branch 'aosp/upstream-main' into HEAD" am: bc74646e90 am: b52fbe0ff4 am: b8f24097f2

Original change: https://android-review.googlesource.com/c/platform/external/drm_hwcomposer/+/2007868

Change-Id: Ie962b5ff821f166d79323474bc6fad66d930e8fa
diff --git a/drm/VSyncWorker.cpp b/drm/VSyncWorker.cpp
index 8cb4d08..ed41189 100644
--- a/drm/VSyncWorker.cpp
+++ b/drm/VSyncWorker.cpp
@@ -92,7 +92,7 @@
   vsync.tv_nsec = int(phased_timestamp - (vsync.tv_sec * kOneSecondNs));
   do {
     ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &vsync, nullptr);
-  } while (ret == -1 && errno == EINTR);
+  } while (ret == EINTR);
   if (ret)
     return ret;