diff options
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index bfb38f1e..adff1a81 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -226,9 +226,9 @@ static int open_device(const char *name, unsigned int chipset) int mid = start + (end - start) / 2; int ret = strcmp(modules[mid].module, dev_name); if (ret < 0) { - end = mid; - } else if (ret > 0) { start = mid + 1; + } else if (ret > 0) { + end = mid; } else { chip = modules[mid].bit; break; |