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>
main
Tapani Pälli 2015-08-07 10:37:58 +03:00
parent f1468e8846
commit d7f58da11a
1 changed files with 1 additions and 3 deletions

View File

@ -61,6 +61,7 @@ static const char* getConnectionText(drmModeConnection conn)
return "connected"; return "connected";
case DRM_MODE_DISCONNECTED: case DRM_MODE_DISCONNECTED:
return "disconnected"; return "disconnected";
case DRM_MODE_UNKNOWNCONNECTION:
default: default:
return "unknown"; return "unknown";
} }
@ -124,9 +125,6 @@ static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, ui
} }
} else { } else {
if (!strncmp(props->name, "DPMS", 4))
;
for (j = 0; j < props->count_enums; j++) { for (j = 0; j < props->count_enums; j++) {
printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name); printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name);
if (props->enums[j].value == value) if (props->enums[j].value == value)