aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb/vesa.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-05-24 01:44:30 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-05-24 01:44:30 +0000
commita5386a13c2e5e7b81c103e45a8030d9d196686c2 (patch)
treecf5ad9974a255f6b12a3c5cbda8a9dc58bf6d594 /sys/dev/fb/vesa.c
parent452e6e0d44a4186c41fc7e11e4c5d4b0b13c9cc4 (diff)
Notes
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r--sys/dev/fb/vesa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index c625b956b9f1..62001c49e45c 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;
}