summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-10-09 10:10:50 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-10-09 10:10:50 +0000
commit16129ea4d43f99593173b07f43573d6563d22d86 (patch)
treecd5333d0eb3308d7c70884d726fa67b3b120818c /sys/arch/amd64
parentaa2e9c218afd7017248868c62135ad22af765b6e (diff)
remove a dead store.
Found by LLVM/Clang Static Analyzer. ok weingart@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/db_memrw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/db_memrw.c b/sys/arch/amd64/amd64/db_memrw.c
index 32ddec3f2bb..cc2d199854f 100644
--- a/sys/arch/amd64/amd64/db_memrw.c
+++ b/sys/arch/amd64/amd64/db_memrw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_memrw.c,v 1.4 2008/06/26 05:42:09 ray Exp $ */
+/* $OpenBSD: db_memrw.c,v 1.5 2008/10/09 10:10:49 chl Exp $ */
/* $NetBSD: db_memrw.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */
/*-
@@ -170,8 +170,6 @@ db_write_bytes(vaddr_t addr, size_t size, char *data)
extern char etext;
char *dst;
- dst = (char *)addr;
-
/* If any part is in kernel text, use db_write_text() */
if (addr >= KERNBASE && addr < (vaddr_t)&etext) {
db_write_text(addr, size, data);