Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/stand/binpatch PR 51185 David Binderman: simp...



details:   https://anonhg.NetBSD.org/src/rev/b2c8eab0f9d5
branches:  trunk
changeset: 815613:b2c8eab0f9d5
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon May 30 02:36:37 2016 +0000

description:
PR 51185 David Binderman: simplify redundant conditional

diffstat:

 sys/arch/amiga/stand/binpatch/binpatch.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ca5a7a87931b -r b2c8eab0f9d5 sys/arch/amiga/stand/binpatch/binpatch.c
--- a/sys/arch/amiga/stand/binpatch/binpatch.c  Mon May 30 02:33:49 2016 +0000
+++ b/sys/arch/amiga/stand/binpatch/binpatch.c  Mon May 30 02:36:37 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: binpatch.c,v 1.11 2006/06/27 10:53:11 tsutsui Exp $    */
+/*     $NetBSD: binpatch.c,v 1.12 2016/05/30 02:36:37 dholland Exp $   */
 
 /* Author: Markus Wild mw%eunet.ch@localhost ???   */
 /* Modified: Rob Leland leland%mitre.org@localhost */
@@ -403,7 +403,7 @@
   {
     int nscan; /* number of variaables scanned in */
     /* get the number to assign to symbol and strip off = */
-    for (cn=ce + 1;((*cn==' ')&&(*cn!='\0'));cn++)
+    for (cn=ce + 1; *cn==' '; cn++)
     ;
     if (! strncmp (cn, "0x", 2))
        nscan = sscanf (cn, "%x",rvalue);



Home | Main Index | Thread Index | Old Index