From 60d0365bd485de77d0ce11d17a317ac76a03180a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 26 Feb 2003 18:25:30 +0000 Subject: eliminate some useless checks. yichen xie's checker. ok mickey@ --- sys/arch/i386/i386/db_disasm.c | 4 ++-- sys/arch/i386/i386/mem.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3