[mutter/wayland] core: remove tautological condition
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] core: remove tautological condition
- Date: Sun, 2 Feb 2014 14:23:54 +0000 (UTC)
commit 66fc32ee1450e9f38de539157300792c71eab3dc
Author: Marek Ch <mchqwerty gmail com>
Date: Fri Dec 20 14:03:41 2013 +0100
core: remove tautological condition
unsigned number is always greater than 0
https://bugzilla.gnome.org/show_bug.cgi?id=720818
src/core/monitor-kms.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/core/monitor-kms.c b/src/core/monitor-kms.c
index 9a1cb50..afdd7bb 100644
--- a/src/core/monitor-kms.c
+++ b/src/core/monitor-kms.c
@@ -111,8 +111,7 @@ make_output_name (drmModeConnector *connector)
};
const char *connector_type_name;
- if (connector->connector_type >= 0 &&
- connector->connector_type < G_N_ELEMENTS (connector_type_names))
+ if (connector->connector_type < G_N_ELEMENTS (connector_type_names))
connector_type_name = connector_type_names[connector->connector_type];
else
connector_type_name = "unknown";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]