core: remove tautological condition

unsigned number is always greater than 0

https://bugzilla.gnome.org/show_bug.cgi?id=720818
This commit is contained in:
Marek Ch 2013-12-20 14:03:41 +01:00 committed by Adel Gadllah
parent d6396cf2c4
commit 66fc32ee14

View File

@ -111,8 +111,7 @@ make_output_name (drmModeConnector *connector)
}; };
const char *connector_type_name; const char *connector_type_name;
if (connector->connector_type >= 0 && if (connector->connector_type < G_N_ELEMENTS (connector_type_names))
connector->connector_type < G_N_ELEMENTS (connector_type_names))
connector_type_name = connector_type_names[connector->connector_type]; connector_type_name = connector_type_names[connector->connector_type];
else else
connector_type_name = "unknown"; connector_type_name = "unknown";