Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/efdd4cb04d9b
branches:  trunk
changeset: 790628:efdd4cb04d9b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 19:56:11 2013 +0000

description:
remove unused variable

diffstat:

 sys/rump/librump/rumpvfs/vm_vfs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r eea3e5f883a2 -r efdd4cb04d9b sys/rump/librump/rumpvfs/vm_vfs.c
--- a/sys/rump/librump/rumpvfs/vm_vfs.c Fri Oct 18 19:55:37 2013 +0000
+++ b/sys/rump/librump/rumpvfs/vm_vfs.c Fri Oct 18 19:56:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_vfs.c,v 1.33 2012/06/03 16:46:08 rmind Exp $        */
+/*     $NetBSD: vm_vfs.c,v 1.34 2013/10/18 19:56:11 christos Exp $     */
 
 /*
  * Copyright (c) 2008-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.33 2012/06/03 16:46:08 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.34 2013/10/18 19:56:11 christos Exp $");
 
 #include <sys/param.h>
 
@@ -110,7 +110,7 @@
 {
        struct vm_page **pgs;
        int maxpages = MIN(32, round_page(len) >> PAGE_SHIFT);
-       int rv, npages, i;
+       int npages, i;
 
        if (maxpages == 0)
                return;
@@ -120,7 +120,7 @@
        while (len) {
                npages = MIN(maxpages, round_page(len) >> PAGE_SHIFT);
                memset(pgs, 0, npages * sizeof(struct vm_page *));
-               rv = uobj->pgops->pgo_get(uobj, trunc_page(off),
+               (void)uobj->pgops->pgo_get(uobj, trunc_page(off),
                    pgs, &npages, 0, VM_PROT_READ | VM_PROT_WRITE,
                    0, PAGERFLAGS | PGO_PASTEOF);
                KASSERT(npages > 0);



Home | Main Index | Thread Index | Old Index