summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-08-07 10:37:58 +0300
committerTapani Pälli <tapani.palli@intel.com>2015-08-10 11:28:33 +0300
commitd7f58da11a51cec48e56299ac722c5f0ca1aec32 (patch)
tree105440387e75df9c4d3a53e0ae93f8529bbd1580 /tests
parentf1468e88461239d3060f146fae6c36cc7b85f366 (diff)
modeprint: cleanup, remove compile warnings
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/modeprint/modeprint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
index e6c6553b..5e953f71 100644
--- a/tests/modeprint/modeprint.c
+++ b/tests/modeprint/modeprint.c
@@ -61,6 +61,7 @@ static const char* getConnectionText(drmModeConnection conn)
return "connected";
case DRM_MODE_DISCONNECTED:
return "disconnected";
+ case DRM_MODE_UNKNOWNCONNECTION:
default:
return "unknown";
}
@@ -124,9 +125,6 @@ static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, ui
}
} else {
- if (!strncmp(props->name, "DPMS", 4))
- ;
-
for (j = 0; j < props->count_enums; j++) {
printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name);
if (props->enums[j].value == value)