Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/sys/arch/i386/ldt Kill a redundant lvalue cast in as...



details:   https://anonhg.NetBSD.org/src/rev/93991d0869b3
branches:  trunk
changeset: 763375:93991d0869b3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Mar 18 03:06:21 2011 +0000

description:
Kill a redundant lvalue cast in assembler constrained.

diffstat:

 regress/sys/arch/i386/ldt/testldt.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9b33ffc3c30f -r 93991d0869b3 regress/sys/arch/i386/ldt/testldt.c
--- a/regress/sys/arch/i386/ldt/testldt.c       Fri Mar 18 02:14:55 2011 +0000
+++ b/regress/sys/arch/i386/ldt/testldt.c       Fri Mar 18 03:06:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: testldt.c,v 1.14 2008/04/28 20:23:05 martin Exp $      */
+/*     $NetBSD: testldt.c,v 1.15 2011/03/18 03:06:21 joerg Exp $       */
 
 /*-
  * Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
 {
        unsigned short _v;
 
-       __asm ("movw %%cs,%0": "=r" ((unsigned short) _v));
+       __asm ("movw %%cs,%0": "=r" (_v));
        return _v;
 }
 



Home | Main Index | Thread Index | Old Index