tools/probe: Remove unused write_data() function

Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
This commit is contained in:
Jyri Sarha 2022-09-23 09:26:05 +03:00 committed by Liam Girdwood
parent a940766d27
commit 1a1a558ac0
1 changed files with 0 additions and 17 deletions

View File

@ -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;