Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Removed unused variable to make it compil...



details:   https://anonhg.NetBSD.org/src/rev/d2b0ce65130c
branches:  trunk
changeset: 338618:d2b0ce65130c
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Jun 01 17:09:46 2015 +0000

description:
Removed unused variable to make it compile again.

diffstat:

 sys/arch/amiga/dev/z3rambd.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 390b1854a642 -r d2b0ce65130c sys/arch/amiga/dev/z3rambd.c
--- a/sys/arch/amiga/dev/z3rambd.c      Mon Jun 01 16:07:27 2015 +0000
+++ b/sys/arch/amiga/dev/z3rambd.c      Mon Jun 01 17:09:46 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: z3rambd.c,v 1.2 2012/11/26 22:58:24 rkujawa Exp $ */
+/*     $NetBSD: z3rambd.c,v 1.3 2015/06/01 17:09:46 phx Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: z3rambd.c,v 1.2 2012/11/26 22:58:24 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: z3rambd.c,v 1.3 2015/06/01 17:09:46 phx Exp $");
 
 /*
  * Z3 RAM virtual block device. Supports ZorRAM, BigRamPlus and FastLane Z3 so 
@@ -132,11 +132,9 @@
 {
        struct z3rambd_softc *sc = aux;
        void *addr;
-       size_t off, bpos;
+       size_t off;
        int s;
 
-       bpos = 0;
-
        bp->b_resid = bp->b_bcount;
        off = bp->b_blkno << DEV_BSHIFT;
 
@@ -162,4 +160,3 @@
        struct z3rambd_softc *sc = aux;
        return sc->sc_size;
 }
-



Home | Main Index | Thread Index | Old Index