No point in swapdev being a static global when used only locally.

This commit is contained in:
Poul-Henning Kamp 1999-05-09 17:28:00 +00:00
parent bb4d56144e
commit b19d4b12c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46816

View file

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
* $Id: vm_swap.c,v 1.65 1999/05/07 10:11:40 phk Exp $
* $Id: vm_swap.c,v 1.66 1999/05/08 06:40:31 phk Exp $
*/
#include "opt_devfs.h"
@ -81,7 +81,6 @@ static struct cdevsw sw_cdevsw =
NULL, -1, nodump, nopsize,
0, 0, -1};
static dev_t swapdev = makedev(BDEV_MAJOR, 0);
/*
* Indirect driver for multi-controller paging.
@ -264,6 +263,7 @@ swaponvp(p, vp, dev, nblks)
register long blk;
swblk_t dvbase;
int error;
dev_t swapdev = makedev(BDEV_MAJOR, 0);
ASSERT_VOP_UNLOCKED(vp, "swaponvp");
for (sp = swdevt, index = 0 ; index < nswdev; index++, sp++) {