[mutter] connector/kms: Add missing else statement
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] connector/kms: Add missing else statement
- Date: Tue, 9 Feb 2021 08:48:10 +0000 (UTC)
commit 2c0bd98f2131e9d99cfa914b72e59e1e86674abf
Author: Dor Askayo <dor askayo gmail com>
Date: Fri Feb 5 19:53:30 2021 +0200
connector/kms: Add missing else statement
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1715>
src/backends/native/meta-kms-connector.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-kms-connector.c b/src/backends/native/meta-kms-connector.c
index 86792d9383..1ea4502845 100644
--- a/src/backends/native/meta-kms-connector.c
+++ b/src/backends/native/meta-kms-connector.c
@@ -188,8 +188,8 @@ state_set_properties (MetaKmsConnectorState *state,
else if ((prop->flags & DRM_MODE_PROP_ENUM) &&
strcmp (prop->name, "panel orientation") == 0)
set_panel_orientation (state, prop, drm_connector->prop_values[i]);
- if ((prop->flags & DRM_MODE_PROP_RANGE) &&
- strcmp (prop->name, "non-desktop") == 0)
+ else if ((prop->flags & DRM_MODE_PROP_RANGE) &&
+ strcmp (prop->name, "non-desktop") == 0)
state->non_desktop = drm_connector->prop_values[i];
drmModeFreeProperty (prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]