From a9168eed4eca29df63a254d2adf1d97db024d4e3 Mon Sep 17 00:00:00 2001 From: kib Date: Fri, 2 Jan 2015 01:00:38 +0000 Subject: [PATCH] Actually remove GIANT_REQUIRED, declared but not done in r263475. Style. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/mem.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c index 5a4d8a9b754d..170da3ffa619 100644 --- a/sys/amd64/amd64/mem.c +++ b/sys/amd64/amd64/mem.c @@ -81,8 +81,6 @@ memrw(struct cdev *dev, struct uio *uio, int flags) int error, o, sflags; vm_offset_t addr, eaddr; - GIANT_REQUIRED; - error = 0; c = 0; sflags = curthread_pflags_set(TDP_DEVMEMIO); @@ -110,8 +108,7 @@ memrw(struct cdev *dev, struct uio *uio, int flags) } error = uiomove((void *)v, (int)c, uio); continue; - } - else if (dev2unit(dev) == CDEV_MINOR_KMEM) { + } else if (dev2unit(dev) == CDEV_MINOR_KMEM) { v = uio->uio_offset; if (v >= DMAP_MIN_ADDRESS && v < DMAP_MAX_ADDRESS) {