From: "Agovic, Sanimir" <sanimir.agovic@intel.com>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH] target: remove return after tcomplain ()
Date: Mon, 20 Jan 2014 09:26:00 -0000 [thread overview]
Message-ID: <0377C58828D86C4588AEEC42FC3B85A7176D4BD8@IRSMSX105.ger.corp.intel.com> (raw)
In-Reply-To: <1390208330-5771-1-git-send-email-markus.t.metzger@intel.com>
Markus> If this turns out to be unnecessary, I can send a patch to
Markus> remove those extra returns.
Tom> It isn't of major importance.
Tom> If you want to do it, it's fine as an obvious change.
As Tom mentioned you may commit as the "The Obvious Fix Rule" apply (see MAINTAINERS).
-Sanimir
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf
> Of Markus Metzger
> Sent: Monday, January 20, 2014 09:59 AM
> To: gdb-patches@sourceware.org
> Subject: [PATCH] target: remove return after tcomplain ()
>
> 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
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
prev parent reply other threads:[~2014-01-20 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 8:58 Markus Metzger
2014-01-20 9:26 ` Agovic, Sanimir [this message]
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=0377C58828D86C4588AEEC42FC3B85A7176D4BD8@IRSMSX105.ger.corp.intel.com \
--to=sanimir.agovic@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
/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