From 66fc32ee1450e9f38de539157300792c71eab3dc Mon Sep 17 00:00:00 2001 From: Marek Ch Date: Fri, 20 Dec 2013 14:03:41 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/monitor-kms.c b/src/core/monitor-kms.c index 9a1cb5036..afdd7bb1e 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";