Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] target: remove return after tcomplain ()
@ 2014-01-20  8:58 Markus Metzger
  2014-01-20  9:26 ` Agovic, Sanimir
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Metzger @ 2014-01-20  8:58 UTC (permalink / raw)
  To: gdb-patches

tcomplain does not return.  Remove any redundant return statement following
a call to it.

2014-01-20  Markus Metzger  <markus.t.metzger@intel.com>

	* target.c (dummy_get_bookmark, target_enable_btrace)
	(target_read_btrace): Remove return after tcomplain ().
---
 gdb/target.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gdb/target.c b/gdb/target.c
index 576d6c7..ea9a6d1 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3760,7 +3760,6 @@ static gdb_byte *
 dummy_get_bookmark (char *ignore1, int ignore2)
 {
   tcomplain ();
-  return NULL;
 }
 
 /* Error-catcher for target_goto_bookmark.  */
@@ -4193,7 +4192,6 @@ target_enable_btrace (ptid_t ptid)
       return t->to_enable_btrace (ptid);
 
   tcomplain ();
-  return NULL;
 }
 
 /* See target.h.  */
@@ -4244,7 +4242,6 @@ target_read_btrace (VEC (btrace_block_s) **btrace,
       return t->to_read_btrace (btrace, btinfo, type);
 
   tcomplain ();
-  return BTRACE_ERR_NOT_SUPPORTED;
 }
 
 /* See target.h.  */
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-20  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20  8:58 [PATCH] target: remove return after tcomplain () Markus Metzger
2014-01-20  9:26 ` Agovic, Sanimir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox