From 255f4e4a3483b07db7888d9ccbb86e5a5b478fa3 Mon Sep 17 00:00:00 2001 From: Samuel Gosselin Date: Fri, 6 May 2022 10:46:40 -0700 Subject: [PATCH] fixup: keep coding style consistent. --- src/modules/headset/headset_openxr.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/modules/headset/headset_openxr.c b/src/modules/headset/headset_openxr.c index feded6ae..d5c11cff 100644 --- a/src/modules/headset/headset_openxr.c +++ b/src/modules/headset/headset_openxr.c @@ -1036,16 +1036,10 @@ static float* openxr_getDisplayFrequencies(uint32_t* count) { } static bool openxr_setDisplayFrequency(float frequency) { - if (!state.features.refreshRate) { - return false; - } - + if (!state.features.refreshRate) return false; XrResult res = xrRequestDisplayRefreshRateFB(state.session, frequency); - if (res == XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB) { - return false; - } + if (res == XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB) return false; XR(res); - return true; }