Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/arch Pull up following revision(s) (requested by maxv...



details:   https://anonhg.NetBSD.org/src/rev/84a5bf6cbd1e
branches:  netbsd-7
changeset: 798475:84a5bf6cbd1e
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 30 12:14:36 2014 +0000

description:
Pull up following revision(s) (requested by maxv in ticket #165):
        sys/arch/newsmips/stand/boot/netif_news.c: revision 1.9
        sys/arch/mvme68k/stand/installboot/installboot.c: revision 1.19
        sys/arch/arm/arm32/pmap.c: revision 1.300
        sys/arch/amiga/dev/siop2.c: revision 1.43
        sys/arch/amiga/amiga/disksubr.c: revision 1.62
        sys/arch/news68k/news68k/bus_space.c: revision 1.13
        sys/arch/amiga/dev/siop.c: revision 1.69
        sys/arch/x86/x86/x86_autoconf.c: revision 1.72
Remove dead code in various places under arch/.

diffstat:

 sys/arch/amiga/amiga/disksubr.c                  |  14 ++------------
 sys/arch/amiga/dev/siop.c                        |   7 ++-----
 sys/arch/amiga/dev/siop2.c                       |   7 ++-----
 sys/arch/arm/arm32/pmap.c                        |  10 ++--------
 sys/arch/mvme68k/stand/installboot/installboot.c |   6 +-----
 sys/arch/news68k/news68k/bus_space.c             |   7 ++++---
 sys/arch/newsmips/stand/boot/netif_news.c        |   4 ++--
 sys/arch/x86/x86/x86_autoconf.c                  |   5 ++---
 8 files changed, 17 insertions(+), 43 deletions(-)

diffs (216 lines):

diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/amiga/amiga/disksubr.c
--- a/sys/arch/amiga/amiga/disksubr.c   Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/amiga/amiga/disksubr.c   Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.61 2014/01/22 00:25:16 christos Exp $   */
+/*     $NetBSD: disksubr.c,v 1.61.4.1 2014/10/30 12:14:37 martin Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.61 2014/01/22 00:25:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.61.4.1 2014/10/30 12:14:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -567,16 +567,6 @@
 done:
        brelse(bp, 0);
        return (error); 
-
-       /*
-        * get write out partition list iff cpu_label is valid.
-        */
-       if (clp->valid == 0 ||
-           (clp->rdblock <= 0 || clp->rdblock >= RDB_MAXBLOCKS))
-               return(EINVAL);
-
-       (void)getrdbmap(dev, strat, lp, clp);
-       return(EINVAL);
 }
 
 u_long
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/amiga/dev/siop.c
--- a/sys/arch/amiga/dev/siop.c Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/amiga/dev/siop.c Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop.c,v 1.68 2014/01/22 00:25:16 christos Exp $ */
+/*     $NetBSD: siop.c,v 1.68.4.1 2014/10/30 12:14:37 martin Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -70,7 +70,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.68 2014/01/22 00:25:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.68.4.1 2014/10/30 12:14:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1127,9 +1127,6 @@
                        }
 /*                     rp->siop_dcntl |= SIOP_DCNTL_STD;*/
                        return (0);
-#ifdef DDB
-                       Debugger();
-#endif
                }
 #endif
                *status = -1;
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/amiga/dev/siop2.c
--- a/sys/arch/amiga/dev/siop2.c        Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/amiga/dev/siop2.c        Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop2.c,v 1.42 2014/01/22 00:25:16 christos Exp $ */
+/*     $NetBSD: siop2.c,v 1.42.4.1 2014/10/30 12:14:37 martin Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -70,7 +70,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siop2.c,v 1.42 2014/01/22 00:25:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siop2.c,v 1.42.4.1 2014/10/30 12:14:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1256,9 +1256,6 @@
                        }
 /*                     rp->siop_dcntl |= SIOP_DCNTL_STD;*/
                        return (0);
-#ifdef DDB
-                       Debugger();
-#endif
                }
 #endif
                *status = -1;
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.295 2014/07/25 15:09:43 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.295.2.1 2014/10/30 12:14:36 martin Exp $    */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295 2014/07/25 15:09:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.1 2014/10/30 12:14:36 martin Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -6221,12 +6221,6 @@
                                rv = 1;
                        }
                        return rv;
-                       if (pde & L1_S_V6_SUPER) {
-                               va = (va & -L1_SS_SIZE) + L1_SS_SIZE;
-                       } else {
-                               va = (va & -L1_S_SIZE) + L1_S_SIZE;
-                       }
-                       continue;
                }
                vaddr_t pa = l1pte_pa(pde);
                pt_entry_t *ptep = (pt_entry_t *)kernel_pt_lookup(pa);
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/mvme68k/stand/installboot/installboot.c
--- a/sys/arch/mvme68k/stand/installboot/installboot.c  Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/mvme68k/stand/installboot/installboot.c  Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.18 2013/06/23 02:06:05 dholland Exp $ */
+/*     $NetBSD: installboot.c,v 1.18.8.1 2014/10/30 12:14:36 martin Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -219,10 +219,6 @@
        }
 
        return (char *)bp;
-
-       if (bp)
-               free((void *)bp);
-       return NULL;
 }
 
 static void
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/news68k/news68k/bus_space.c
--- a/sys/arch/news68k/news68k/bus_space.c      Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/news68k/news68k/bus_space.c      Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space.c,v 1.12 2014/03/24 19:54:28 christos Exp $  */
+/*     $NetBSD: bus_space.c,v 1.12.4.1 2014/10/30 12:14:37 martin Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.12 2014/03/24 19:54:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.12.4.1 2014/10/30 12:14:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -61,9 +61,10 @@
                return 0;
        }
 
-       if (t == NEWS68K_BUS_SPACE_EIO)
+       if (t == NEWS68K_BUS_SPACE_EIO) {
                *bshp = (bus_space_handle_t)bpa; /* XXX use tt0 mapping */
                return 0;
+       }
 
        return 1;
 }
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/newsmips/stand/boot/netif_news.c
--- a/sys/arch/newsmips/stand/boot/netif_news.c Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/newsmips/stand/boot/netif_news.c Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netif_news.c,v 1.8 2009/10/21 23:12:09 snj Exp $       */
+/*     $NetBSD: netif_news.c,v 1.8.38.1 2014/10/30 12:14:36 martin Exp $       */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -191,7 +191,7 @@
 prom_getether(struct romdev *pd, u_char *ea)
 {
 
-       if (apcall_ioctl(pd->fd, APIOCGIFHWADDR, ea));
+       if (apcall_ioctl(pd->fd, APIOCGIFHWADDR, ea))
                return -1;
 
 #ifdef BOOT_DEBUG
diff -r 07ddb36564aa -r 84a5bf6cbd1e sys/arch/x86/x86/x86_autoconf.c
--- a/sys/arch/x86/x86/x86_autoconf.c   Thu Oct 30 12:04:46 2014 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c   Thu Oct 30 12:14:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_autoconf.c,v 1.71 2014/06/10 22:01:40 christos Exp $       */
+/*     $NetBSD: x86_autoconf.c,v 1.71.2.1 2014/10/30 12:14:37 martin Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.71 2014/06/10 22:01:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.71.2.1 2014/10/30 12:14:37 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -423,7 +423,6 @@
                for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST);
                     dv != NULL;
                     dv = deviter_next(&di)) {
-                               continue;
 
                        if (device_is_a(dv, "fd") &&
                            device_class(dv) == DV_DISK) {



Home | Main Index | Thread Index | Old Index