meta-monitor-manager: Remove bogus condition from check

An unsigned number is never smaller than 0, so we don't have to
check for it.
This commit is contained in:
Florian Müllner 2015-09-24 01:32:10 +02:00
parent bc00f118f3
commit 67d3a7a2d7

View File

@ -884,8 +884,7 @@ meta_monitor_manager_handle_apply_configuration (MetaDBusDisplayConfig *skeleto
crtc_info->y = 0;
}
if (transform < META_MONITOR_TRANSFORM_NORMAL ||
transform > META_MONITOR_TRANSFORM_FLIPPED_270 ||
if (transform > META_MONITOR_TRANSFORM_FLIPPED_270 ||
((crtc->all_transforms & (1 << transform)) == 0))
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,