Source-Changes-HG archive

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

[src/trunk]: src/sys/arch remove dead code



details:   https://anonhg.NetBSD.org/src/rev/3ad6bce5f547
branches:  trunk
changeset: 332439:3ad6bce5f547
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 21 15:43:11 2014 +0000

description:
remove dead code

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 ++--------
 4 files changed, 8 insertions(+), 30 deletions(-)

diffs (122 lines):

diff -r 2be2b8b746af -r 3ad6bce5f547 sys/arch/amiga/amiga/disksubr.c
--- a/sys/arch/amiga/amiga/disksubr.c   Sun Sep 21 15:23:55 2014 +0000
+++ b/sys/arch/amiga/amiga/disksubr.c   Sun Sep 21 15:43:11 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.62 2014/09/21 15:43:11 christos 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.62 2014/09/21 15:43:11 christos 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 2be2b8b746af -r 3ad6bce5f547 sys/arch/amiga/dev/siop.c
--- a/sys/arch/amiga/dev/siop.c Sun Sep 21 15:23:55 2014 +0000
+++ b/sys/arch/amiga/dev/siop.c Sun Sep 21 15:43:11 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.69 2014/09/21 15:44:17 christos 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.69 2014/09/21 15:44:17 christos 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 2be2b8b746af -r 3ad6bce5f547 sys/arch/amiga/dev/siop2.c
--- a/sys/arch/amiga/dev/siop2.c        Sun Sep 21 15:23:55 2014 +0000
+++ b/sys/arch/amiga/dev/siop2.c        Sun Sep 21 15:43:11 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.43 2014/09/21 15:44:47 christos 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.43 2014/09/21 15:44:47 christos 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 2be2b8b746af -r 3ad6bce5f547 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Sep 21 15:23:55 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Sep 21 15:43:11 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.299 2014/09/05 05:25:28 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.300 2014/09/21 15:45:46 christos 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.299 2014/09/05 05:25:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.300 2014/09/21 15:45:46 christos Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -6233,12 +6233,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);



Home | Main Index | Thread Index | Old Index