From: Ian Rogers <irogers@google.com>
To: linux-trace-devel@vger.kernel.org,
Tzvetomir Stoyanov <tz.stoyanov@gmail.com>,
Steven Rostedt <rostedt@goodmis.org>
Cc: Ian Rogers <irogers@google.com>
Subject: [PATCH] libtracefs: Remove unreachable code.
Date: Fri, 3 Sep 2021 09:44:11 -0700 [thread overview]
Message-ID: <20210903164411.3248659-1-irogers@google.com> (raw)
Silences related warning.
Signed-off-by: Ian Rogers <irogers@google.com>
---
src/tracefs-sqlhist.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/tracefs-sqlhist.c b/src/tracefs-sqlhist.c
index f4dc004..2eb65bd 100644
--- a/src/tracefs-sqlhist.c
+++ b/src/tracefs-sqlhist.c
@@ -488,14 +488,6 @@ __hidden void *add_number(struct sqlhist_bison *sb, long val)
create_number(num, &expr);
*num = val;
return expr;
-
- expr = calloc(1, sizeof(expr));
- if (!expr)
- return NULL;
-
- expr->type = EXPR_NUMBER;
- expr->number = val;
- return expr;
}
__hidden int table_start(struct sqlhist_bison *sb)
--
2.33.0.153.gba50c8fa24-goog
reply other threads:[~2021-09-03 16:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210903164411.3248659-1-irogers@google.com \
--to=irogers@google.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tz.stoyanov@gmail.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;
as well as URLs for NNTP newsgroup(s).