Message ID | 20210903164411.3248659-1-irogers@google.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 17ad7da069f2773a26ccc7ad874573ca95a23a38 |
Headers | show |
Series | libtracefs: Remove unreachable code. | expand |
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)
Silences related warning. Signed-off-by: Ian Rogers <irogers@google.com> --- src/tracefs-sqlhist.c | 8 -------- 1 file changed, 8 deletions(-)