This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Minor cleanup in i386-linux-nat.c


Couldn't resist...

Committed.

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
	* i386-linux-nat.c (fill_gregset): Remove redundant parentheses.

Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-nat.c,v
retrieving revision 1.37
diff -u -p -r1.37 i386-linux-nat.c
--- i386-linux-nat.c 9 Jun 2002 16:06:48 -0000 1.37
+++ i386-linux-nat.c 15 Jun 2002 14:00:53 -0000
@@ -326,7 +326,7 @@ fill_gregset (elf_gregset_t *gregsetp, i
   int i;
 
   for (i = 0; i < NUM_GREGS; i++)
-    if ((regno == -1 || regno == i))
+    if (regno == -1 || regno == i)
       regcache_collect (i, regp + regmap[i]);
 
   if ((regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]