kms/connector: Use utility function to get the property ID

We already have one for this, so use it instead of repeating the same

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1964>
This commit is contained in:
Marco Trevisan (Treviño) 2021-03-22 00:45:20 +01:00 committed by Marge Bot
parent cbfb59b828
commit 3d689989ea

View File

@ -126,7 +126,8 @@ meta_kms_connector_is_underscanning_supported (MetaKmsConnector *connector)
uint32_t underscan_prop_id;
underscan_prop_id =
connector->prop_table.props[META_KMS_CONNECTOR_PROP_UNDERSCAN].prop_id;
meta_kms_connector_get_prop_id (connector,
META_KMS_CONNECTOR_PROP_UNDERSCAN);
return underscan_prop_id != 0;
}