Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700 Remove unused variable.



details:   https://anonhg.NetBSD.org/src/rev/109710bb1ddb
branches:  trunk
changeset: 790681:109710bb1ddb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Oct 19 14:00:59 2013 +0000

description:
Remove unused variable.

diffstat:

 sys/arch/hp700/gsc/lpt_gsc.c    |  7 +++----
 sys/arch/hp700/hp700/disksubr.c |  8 ++++----
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (71 lines):

diff -r b891faad16bf -r 109710bb1ddb sys/arch/hp700/gsc/lpt_gsc.c
--- a/sys/arch/hp700/gsc/lpt_gsc.c      Sat Oct 19 13:49:11 2013 +0000
+++ b/sys/arch/hp700/gsc/lpt_gsc.c      Sat Oct 19 14:00:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lpt_gsc.c,v 1.14 2011/07/01 18:33:09 dyoung Exp $      */
+/*     $NetBSD: lpt_gsc.c,v 1.15 2013/10/19 14:01:42 skrll Exp $       */
 
 /*     $OpenBSD: lpt_gsc.c,v 1.6 2000/07/21 17:41:06 mickey Exp $      */
 
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lpt_gsc.c,v 1.14 2011/07/01 18:33:09 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lpt_gsc.c,v 1.15 2013/10/19 14:01:42 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -139,7 +139,7 @@
        bus_space_handle_t ioh;
        bus_addr_t base;
        uint8_t mask, data;
-       int i, rv;
+       int i;
 
        if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
            ga->ga_type.iodc_sv_model != HPPA_FIO_CENT)
@@ -165,7 +165,6 @@
        if (bus_space_map(ga->ga_iot, base, LPT_NPORTS, 0, &ioh))
                return 0;
 
-       rv = 0;
        mask = 0xff;
 
        data = 0x55;                            /* Alternating zeros */
diff -r b891faad16bf -r 109710bb1ddb sys/arch/hp700/hp700/disksubr.c
--- a/sys/arch/hp700/hp700/disksubr.c   Sat Oct 19 13:49:11 2013 +0000
+++ b/sys/arch/hp700/hp700/disksubr.c   Sat Oct 19 14:00:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.27 2012/02/23 21:38:53 skrll Exp $      */
+/*     $NetBSD: disksubr.c,v 1.28 2013/10/19 14:00:59 skrll Exp $      */
 
 /*     $OpenBSD: disksubr.c,v 1.6 2000/10/18 21:00:34 mickey Exp $     */
 
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.27 2012/02/23 21:38:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.28 2013/10/19 14:00:59 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -159,7 +159,7 @@
        struct buf *bp = NULL;
        const char *msg = "no disk label";
        int i;
-       struct disklabel minilabel, fallbacklabel;
+       struct disklabel fallbacklabel;
 
        /* minimal requirements for archetypal disk label */
        if (lp->d_secsize == 0)
@@ -177,7 +177,7 @@
        if (lp->d_partitions[i].p_size == 0)
                lp->d_partitions[i].p_size = 0x1fffffff;
        lp->d_partitions[i].p_offset = 0;
-       minilabel = fallbacklabel = *lp;
+       fallbacklabel = *lp;
 
        /* get a buffer and initialize it */
        bp = geteblk((int)lp->d_secsize);



Home | Main Index | Thread Index | Old Index