diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2009-11-12 18:16:35 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2009-11-12 18:16:35 +0000 |
commit | 2f28bf307c4071d4f4523a59833a5422f4217355 (patch) | |
tree | 34b93de1b198bb7cc78a8051cb1c803d4ab3d926 /sys/dev/fb/vesa.c | |
parent | bf71c25f87f796d46714ddaefae74b56a6757c32 (diff) | |
download | src-2f28bf307c4071d4f4523a59833a5422f4217355.tar.gz src-2f28bf307c4071d4f4523a59833a5422f4217355.zip |
- Remove a redundant check for dpms(4).
- Test a cheaper function first.
Notes
Notes:
svn path=/head/; revision=199230
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r-- | sys/dev/fb/vesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index 36b05f84bacf..13f03f76272d 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -250,8 +250,8 @@ vesa_bios_post(void) 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 (x86bios_match_device(0xc0000, *devs) && - device_get_flags(*devs) != 0) { + if (device_get_flags(*devs) != 0 && + x86bios_match_device(0xc0000, *devs)) { dev = *devs; is_pci = 1; break; |