diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-05-18 18:28:17 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-05-18 18:28:17 +0000 |
| commit | 842795abcceeed98632413dcd42b1c0944a1dac5 (patch) | |
| tree | af0321c5ae6a1f9a8277f66961c462f3cf753813 /sys/dev/fb/vesa.c | |
| parent | fdb2feee165a92f4ea6a7bdc7567769403883a05 (diff) | |
Notes
Diffstat (limited to 'sys/dev/fb/vesa.c')
| -rw-r--r-- | sys/dev/fb/vesa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index 446046c918df..4167b44fac5c 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -240,10 +240,10 @@ vesa_bios_post(void) /* Find the matching PCI video controller. */ dc = devclass_find("vgapci"); if (dc != NULL && devclass_get_devices(dc, &devs, &count) == 0) { - for (dev = NULL, i = 0; dev == NULL && i < count; devs++, i++) - if (device_get_flags(*devs) != 0 && - x86bios_match_device(0xc0000, *devs)) { - dev = *devs; + for (i = 0; i < count; i++) + if (device_get_flags(devs[i]) != 0 && + x86bios_match_device(0xc0000, devs[i])) { + dev = devs[i]; is_pci = 1; break; } |
