Check the return value of agp_enable() instead of assuming it completed.
authoroga <oga@openbsd.org>
Sun, 17 Aug 2008 20:49:52 +0000 (20:49 +0000)
committeroga <oga@openbsd.org>
Sun, 17 Aug 2008 20:49:52 +0000 (20:49 +0000)
commitbe899aa0ceaaf35c892c2ccdabfe3dd1df53a827
tree310c8584b4b790864c14a9d7da0b30f07c17a65f
parentd897fdad49f3ce73374c3c8508203602af4cab26
Check the return value of agp_enable() instead of assuming it completed.
apply some knf and other formatting while i'm at it.

problem originally pointed out by Tobias Ulmer, thanks!
sys/dev/pci/drm/drm_agpsupport.c