mirror of https://github.com/encounter/SDL.git
KMSDRM: fix inverted strcmp, remove useless if test (Bug 4624)
This commit is contained in:
parent
5998c51324
commit
faed7f836d
|
@ -101,11 +101,8 @@ static int get_dricount(void)
|
|||
folder = opendir(KMSDRM_DRI_PATH);
|
||||
if (folder) {
|
||||
while ((res = readdir(folder))) {
|
||||
int len = 0;
|
||||
if (res->d_name) {
|
||||
len = SDL_strlen(res->d_name);
|
||||
}
|
||||
if (len > 4 && strncmp(res->d_name, "card", 4)) {
|
||||
int len = SDL_strlen(res->d_name);
|
||||
if (len > 4 && strncmp(res->d_name, "card", 4) == 0) {
|
||||
devcount++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue