summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-13 19:38:45 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-13 19:38:45 +0000
commitc6503137fa3f3a39fd04a241d13125294fec8c5d (patch)
tree83e53558da67714e19a2f4e18add9b87797239bd
parent982c32beb40faa21d7b96016d580157f4fbab66f (diff)
Fix lvalue abuse by removing a redundant cast.
ok kettenis@
-rw-r--r--sys/arch/amd64/amd64/mpbios.c4
-rw-r--r--sys/arch/i386/i386/mpbios.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/mpbios.c b/sys/arch/amd64/amd64/mpbios.c
index c75a3b9afa7..fcd933ca661 100644
--- a/sys/arch/amd64/amd64/mpbios.c
+++ b/sys/arch/amd64/amd64/mpbios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios.c,v 1.15 2009/01/13 13:53:50 kettenis Exp $ */
+/* $OpenBSD: mpbios.c,v 1.16 2009/01/13 19:38:44 grange Exp $ */
/* $NetBSD: mpbios.c,v 1.7 2003/05/15 16:32:50 fvdl Exp $ */
/*-
@@ -652,7 +652,7 @@ mpbios_scan(struct device *self)
return;
}
- (u_char*)position += mp_conf[type].length;
+ position += mp_conf[type].length;
}
mp_nintrs = cur_intr;
diff --git a/sys/arch/i386/i386/mpbios.c b/sys/arch/i386/i386/mpbios.c
index 1ce97f2356f..63fb6172255 100644
--- a/sys/arch/i386/i386/mpbios.c
+++ b/sys/arch/i386/i386/mpbios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios.c,v 1.30 2009/01/13 13:53:50 kettenis Exp $ */
+/* $OpenBSD: mpbios.c,v 1.31 2009/01/13 19:38:44 grange Exp $ */
/* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */
/*-
@@ -672,7 +672,7 @@ mpbios_scan(struct device *self)
return;
}
- (u_char*)position += mp_conf[type].length;
+ position += mp_conf[type].length;
}
if (mp_verbose && mp_cth->ext_len)
printf("%s: MP WARNING: %d "