diff mbox

[v2,4/4] Remove extraneous parentheses.

Message ID 20160701174036.90598-5-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin July 1, 2016, 5:40 p.m. UTC
gdb/ChangeLog:

	* h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
---
 gdb/ChangeLog    | 4 ++++
 gdb/h8300-tdep.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Yao Qi July 6, 2016, 8:08 a.m. UTC | #1
On Fri, Jul 1, 2016 at 6:40 PM, John Baldwin <jhb@freebsd.org> wrote:
> gdb/ChangeLog:
>
>         * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.

Patch is good to me.
diff mbox

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 97db7ef..4ce7dd6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@ 
 2016-07-01  John Baldwin  <jhb@FreeBSD.org>
 
+	* h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
+
+2016-07-01  John Baldwin  <jhb@FreeBSD.org>
+
 	* ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
 	left shifts.
 
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index d479a20..951f005 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -1051,7 +1051,7 @@  h8300_print_register (struct gdbarch *gdbarch, struct ui_file *file,
 	fprintf_filtered (file, "u> ");
       if ((C | Z) == 1)
 	fprintf_filtered (file, "u<= ");
-      if ((C == 0))
+      if (C == 0)
 	fprintf_filtered (file, "u>= ");
       if (C == 1)
 	fprintf_filtered (file, "u< ");