diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-22 10:57:17 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-22 10:57:17 +0200 |
commit | a5e6897d10962e4bdfa657ce704bc111a4a4c663 (patch) | |
tree | f0d6695a7ff285298c87d599dead34e8fcfe2fa8 | |
parent | 1fedd1db41bfe1815654a726480e430591db344d (diff) |
tests/flip_test: rip out usage
Totally useless if the only option is "-h"
-rw-r--r-- | tests/flip_test.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/flip_test.c b/tests/flip_test.c index 934ccb70..283d19d0 100644 --- a/tests/flip_test.c +++ b/tests/flip_test.c @@ -492,34 +492,12 @@ static int run_test(void) return 1; } -static char optstr[] = "h"; - -static void usage(char *name) -{ - fprintf(stderr, "usage: %s [-h]\n", name); - fprintf(stderr, "\t-h: help\n"); - exit(0); -} - int main(int argc, char **argv) { - int c; const char *modules[] = { "i915" }; unsigned int i; int ret = 0; - opterr = 0; - while ((c = getopt(argc, argv, optstr)) != -1) { - switch (c) { - default: - fprintf(stderr, "unknown option %c\n", c); - /* fall through */ - case 'h': - usage(argv[0]); - break; - } - } - for (i = 0; i < ARRAY_SIZE(modules); i++) { drm_fd = drmOpen(modules[i], NULL); if (drm_fd < 0) { |