From 1a1a558ac01242f0e6c9a2118724d367688393d3 Mon Sep 17 00:00:00 2001 From: Jyri Sarha Date: Fri, 23 Sep 2022 09:26:05 +0300 Subject: [PATCH] tools/probe: Remove unused write_data() function Signed-off-by: Jyri Sarha --- tools/probes/probes_main.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tools/probes/probes_main.c b/tools/probes/probes_main.c index 323c31db1..e73071daa 100644 --- a/tools/probes/probes_main.c +++ b/tools/probes/probes_main.c @@ -63,23 +63,6 @@ static void usage(void) exit(0); } -int write_data(char *path, char *data) -{ - FILE *fd; - - fd = fopen(path, "w"); - if (!fd) { - fprintf(stderr, "error: unable to open file %s, error %d\n", - path, errno); - return errno; - } - - fprintf(fd, "%s", data); - fclose(fd); - - return 0; -} - int get_buffer_file(struct wave_files *files, uint32_t buffer_id) { int i;