From: Markus Metzger <markus.t.metzger@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH] target: remove return after tcomplain ()
Date: Mon, 20 Jan 2014 08:58:00 -0000 [thread overview]
Message-ID: <1390208330-5771-1-git-send-email-markus.t.metzger@intel.com> (raw)
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
next reply other threads:[~2014-01-20 8:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 8:58 Markus Metzger [this message]
2014-01-20 9:26 ` Agovic, Sanimir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390208330-5771-1-git-send-email-markus.t.metzger@intel.com \
--to=markus.t.metzger@intel.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox