tests/flip_test: rip out usage

Totally useless if the only option is "-h"
This commit is contained in:
Daniel Vetter 2012-05-22 10:57:17 +02:00
parent 1fedd1db41
commit a5e6897d10

View File

@ -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) {