Author: jkim
Date: Tue Jul 13 19:58:06 2010
New Revision: 210017
URL: http://svn.freebsd.org/changeset/base/210017

Log:
  Initialize a variable before its use.

Modified:
  head/sys/dev/fb/vesa.c

Modified: head/sys/dev/fb/vesa.c
==============================================================================
--- head/sys/dev/fb/vesa.c      Tue Jul 13 19:48:20 2010        (r210016)
+++ head/sys/dev/fb/vesa.c      Tue Jul 13 19:58:06 2010        (r210017)
@@ -986,9 +986,9 @@ vesa_bios_init(void)
 
        x86bios_free(vmbuf, sizeof(*buf));
 
+       vesa_state_buf_size = vesa_bios_state_buf_size();
        vesa_palette = x86bios_alloc(&vesa_palette_offs,
            VESA_PALETTE_SIZE + vesa_state_buf_size, M_WAITOK);
-       vesa_state_buf_size = vesa_bios_state_buf_size();
        if (vesa_state_buf_size > 0) {
                vesa_state_buf = vesa_palette + VESA_PALETTE_SIZE;
                vesa_state_buf_offs = vesa_palette_offs + VESA_PALETTE_SIZE;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to