[PATCH 3/3] modeprint: cleanup, remove compile warnings

Tapani Pälli tapani.palli at intel.com
Fri Aug 7 00:37:58 PDT 2015


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 tests/modeprint/modeprint.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
index e6c6553..5e953f7 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)
-- 
2.1.0



More information about the dri-devel mailing list