Author: pjd
Date: Wed Oct 19 23:48:15 2011
New Revision: 226554
URL: http://svn.freebsd.org/changeset/base/226554

Log:
  Fix missing return when LOADER_GPT_SUPPORT is defined, but LOADER_MBR_SUPPORT
  is not.
  
  MFC after:    3 days

Modified:
  head/sys/boot/common/disk.c

Modified: head/sys/boot/common/disk.c
==============================================================================
--- head/sys/boot/common/disk.c Wed Oct 19 23:44:38 2011        (r226553)
+++ head/sys/boot/common/disk.c Wed Oct 19 23:48:15 2011        (r226554)
@@ -776,9 +776,9 @@ disk_open(struct disk_devdesc *dev)
 
 #ifdef LOADER_GPT_SUPPORT
        rc = disk_opengpt(dev);
-       if (rc)
 #endif
 #ifdef LOADER_MBR_SUPPORT
+       if (rc)
                rc = disk_openmbr(dev);
 #endif
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to