* [PATCH] libtracefs: Remove unreachable code.
@ 2021-09-03 16:44 Ian Rogers
0 siblings, 0 replies; only message in thread
From: Ian Rogers @ 2021-09-03 16:44 UTC (permalink / raw)
To: linux-trace-devel, Tzvetomir Stoyanov, Steven Rostedt; +Cc: Ian Rogers
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-03 16:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-03 16:44 [PATCH] libtracefs: Remove unreachable code Ian Rogers
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).