From patchwork Tue Sep 22 15:19:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 8821 Received: (qmail 12702 invoked by alias); 22 Sep 2015 15:19:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 12690 invoked by uid 89); 22 Sep 2015 15:19:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg21.ericsson.net Received: from usevmg21.ericsson.net (HELO usevmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 22 Sep 2015 15:19:17 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id 13.CC.26730.73601065; Tue, 22 Sep 2015 09:41:43 +0200 (CEST) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 22 Sep 2015 11:19:14 -0400 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH/obv] stap-probe: Remove unnecessary cast Date: Tue, 22 Sep 2015 11:19:11 -0400 Message-ID: <1442935151-23734-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes FYI. ret->args_u.text is const char *, probe_args is const char *, so no cast is needed. Found while doing cxx-conversion stuff, since it wouldn't build in C++. gdb/ChangeLog: * stap-probe.c (handle_stap_probe): Remove unnecessary cast. --- gdb/ChangeLog | 4 ++++ gdb/stap-probe.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 188bfb2..42ffaf7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-09-22 Simon Marchi + + * stap-probe.c (handle_stap_probe): Remove unnecessary cast. + 2015-09-21 Simon Marchi * cli/cli-setshow.c (cmd_show_list): Constify a variable. diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 912505c..8f8cea6 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1538,7 +1538,7 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el, } ret->args_parsed = 0; - ret->args_u.text = (void *) probe_args; + ret->args_u.text = probe_args; /* Successfully created probe. */ VEC_safe_push (probe_p, *probesp, (struct probe *) ret);