delete archaic chuck of code relating to dumpdev
authorderaadt <deraadt@openbsd.org>
Fri, 15 Dec 1995 13:49:18 +0000 (13:49 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 15 Dec 1995 13:49:18 +0000 (13:49 +0000)
sys/arch/sparc/sparc/autoconf.c

index b66f5e0..a636bdd 100644 (file)
@@ -1655,32 +1655,6 @@ gotswap:
                printf("can't figure root, hope your kernel is right\n");
                return;
        }
-
-#if 0
-       /*
-        * XXX: What is this doing?
-        */
-       mindev &= ~PARTITIONMASK;
-       temp = NODEV;
-       for (swp = swdevt; swp->sw_dev != NODEV; swp++) {
-               if (majdev == major(swp->sw_dev) &&
-                   mindev == (minor(swp->sw_dev) & ~PARTITIONMASK)) {
-                       temp = swdevt[0].sw_dev;
-                       swdevt[0].sw_dev = swp->sw_dev;
-                       swp->sw_dev = temp;
-                       break;
-               }
-       }
-       if (swp->sw_dev == NODEV)
-               return;
-
-       /*
-        * If dumpdev was the same as the old primary swap device, move
-        * it to the new primary swap device.
-        */
-       if (temp == dumpdev)
-               dumpdev = swdevt[0].sw_dev;
-#endif
 }
 
 static int