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 readability fix.
details: https://anonhg.NetBSD.org/src/rev/1bb36fb8c210
branches: trunk
changeset: 782896:1bb36fb8c210
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 25 19:52:05 2012 +0000
description:
readability fix.
diffstat:
sys/arch/amiga/dev/zbus.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r cd594d0d5bee -r 1bb36fb8c210 sys/arch/amiga/dev/zbus.c
--- a/sys/arch/amiga/dev/zbus.c Sun Nov 25 19:50:34 2012 +0000
+++ b/sys/arch/amiga/dev/zbus.c Sun Nov 25 19:52:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zbus.c,v 1.70 2012/11/25 19:15:43 rkujawa Exp $ */
+/* $NetBSD: zbus.c,v 1.71 2012/11/25 19:52:05 christos Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zbus.c,v 1.70 2012/11/25 19:15:43 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zbus.c,v 1.71 2012/11/25 19:52:05 christos Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -330,10 +330,13 @@
* check if it's a Zorro II or III board and not linked into
* MemList (i.e. not a memory board)
*/
- if ((cdp->rom.type & (ERT_TYPEMASK | ERTF_MEMLIST)) !=
- ERT_ZORROII && (cdp->rom.type & (ERT_TYPEMASK |
- ERTF_MEMLIST)) != ERT_ZORROIII)
- continue; /* er_Type != Zorro I/O */
+ switch (cdp->rom.type & (ERT_TYPEMASK | ERTF_MEMLIST)) {
+ case ERT_ZORROII:
+ case ERT_ZORROIII:
+ break;
+ default:
+ continue;
+ }
za.pa = cdp->addr;
za.size = cdp->size;
Home |
Main Index |
Thread Index |
Old Index