From b26e494a0c26b4ad8c4e7fedac793f901d602015 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 15 Dec 1995 13:49:18 +0000 Subject: [PATCH] delete archaic chuck of code relating to dumpdev --- sys/arch/sparc/sparc/autoconf.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index b66f5e0c0e4..a636bddbc71 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -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 -- 2.20.1