summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-11-24 22:30:08 +0000
committermiod <miod@openbsd.org>2005-11-24 22:30:08 +0000
commit210a703eaf1919d090c15f3e069ffd2297f32103 (patch)
tree336404f421e55fcfbced0a36562df1c4ec982342
parentdont need spls in attach (diff)
downloadwireguard-openbsd-210a703eaf1919d090c15f3e069ffd2297f32103.tar.xz
wireguard-openbsd-210a703eaf1919d090c15f3e069ffd2297f32103.zip
Remove unnecessary cast in an atop() construct.
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index ef2c29b4f51..4707bcc5afb 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.78 2005/11/11 16:50:21 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.79 2005/11/24 22:30:08 miod Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -1609,7 +1609,7 @@ _bus_dmamem_mmap(t, t0, segs, nsegs, off, prot, flags)
continue;
}
- return (atop((caddr_t)segs[i].ds_addr + off));
+ return (atop(segs[i].ds_addr + off));
}
/* Page not found. */