Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc - rework mm_md_readwrite() to avoid fal...



details:   https://anonhg.NetBSD.org/src/rev/20084f12ba7d
branches:  trunk
changeset: 838902:20084f12ba7d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 04 03:32:27 2019 +0000

description:
- rework mm_md_readwrite() to avoid fallthrough warnings entirely

diffstat:

 sys/arch/sparc/sparc/machdep.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 7e01563aec6a -r 20084f12ba7d sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c    Mon Feb 04 03:30:20 2019 +0000
+++ b/sys/arch/sparc/sparc/machdep.c    Mon Feb 04 03:32:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.328 2016/12/10 10:41:07 mrg Exp $ */
+/*     $NetBSD: machdep.c,v 1.329 2019/02/04 03:32:27 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.328 2016/12/10 10:41:07 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.329 2019/02/04 03:32:27 mrg Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_sunos.h"
@@ -3143,10 +3143,7 @@
        case DEV_EEPROM:
                if (cputyp == CPU_SUN4)
                        return eeprom_uio(uio);
-               else
 #endif
-               return ENXIO;
-       default:
-               return ENXIO;
        }
+       return ENXIO;
 }



Home | Main Index | Thread Index | Old Index