summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-02-26 18:25:30 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-02-26 18:25:30 +0000
commit60d0365bd485de77d0ce11d17a317ac76a03180a (patch)
treeb7c6c5924cb48422fdfdf74164d9622703116b99 /sys
parent038a1e89f25b3e4a31de92099e3b404031570c38 (diff)
eliminate some useless checks. yichen xie's checker.
ok mickey@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/db_disasm.c4
-rw-r--r--sys/arch/i386/i386/mem.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/db_disasm.c b/sys/arch/i386/i386/db_disasm.c
index f6182ebbc91..6eec037a9be 100644
--- a/sys/arch/i386/i386/db_disasm.c
+++ b/sys/arch/i386/i386/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.8 2002/05/16 13:01:41 art Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.9 2003/02/26 18:25:29 tedu Exp $ */
/* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */
/*
@@ -911,7 +911,7 @@ db_read_address(loc, short_addr, regmodrm, addrp)
break;
}
} else {
- if (mod != 3 && rm == 4) {
+ if (rm == 4) {
get_value_inc(sib, loc, 1, FALSE);
rm = sib_base(sib);
index = sib_index(sib);
diff --git a/sys/arch/i386/i386/mem.c b/sys/arch/i386/i386/mem.c
index e5a77b94cc9..98bf572d0b7 100644
--- a/sys/arch/i386/i386/mem.c
+++ b/sys/arch/i386/i386/mem.c
@@ -1,5 +1,5 @@
/* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */
-/* $OpenBSD: mem.c,v 1.24 2003/01/16 04:15:17 art Exp $ */
+/* $OpenBSD: mem.c,v 1.25 2003/02/26 18:25:29 tedu Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990, 1993
@@ -204,8 +204,6 @@ mmrw(dev_t dev, struct uio *uio, int flags)
default:
return (ENXIO);
}
- if (error)
- break;
iov->iov_base += c;
iov->iov_len -= c;
uio->uio_offset += c;