[mutter] meta-monitor-manager: Remove bogus condition from check
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meta-monitor-manager: Remove bogus condition from check
- Date: Thu, 24 Sep 2015 01:10:43 +0000 (UTC)
commit 67d3a7a2d7611bfd64c8f9cbc2fc7b860a5c00f7
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Sep 24 01:32:10 2015 +0200
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.
src/backends/meta-monitor-manager.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index 00e88b0..a15673e 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]