public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: remove unnecessary braces
@ 2024-01-15 17:00 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2024-01-15 17:00 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=85bfd77ee6c2cd73e04ea67966313a17edaad1c1

commit 85bfd77ee6c2cd73e04ea67966313a17edaad1c1
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Mon Jan 15 12:00:20 2024 -0500

    gdb: remove unnecessary braces
    
    Change-Id: I5e96c0f38aa788462ab19a9becfe22030e913c2a

Diff:
---
 gdb/stack.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gdb/stack.c b/gdb/stack.c
index c07e53be35e..2de3e361c61 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1722,10 +1722,8 @@ info_frame_command_core (frame_info_ptr fi, bool selected_frame_p)
 		gdb_printf ("\n");
 	      }
 	    else if (value->lval () == lval_register)
-	      {
-		gdb_printf (" Previous frame's sp in %s\n",
-			    gdbarch_register_name (gdbarch, value->regnum ()));
-	      }
+	      gdb_printf (" Previous frame's sp in %s\n",
+			  gdbarch_register_name (gdbarch, value->regnum ()));
 
 	    release_value (value);
 	    need_nl = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-15 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 17:00 [binutils-gdb] gdb: remove unnecessary braces Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).