[alsa-devel] [PATCH] topology: fix output file unlinking
Liam Girdwood
liam.r.girdwood at linux.intel.com
Tue Aug 11 15:25:58 CEST 2015
Unlinking is unecessary as the old file will be overwritten with the new
as intended.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/topology/parser.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/topology/parser.c b/src/topology/parser.c
index ed25bb8..5544517 100644
--- a/src/topology/parser.c
+++ b/src/topology/parser.c
@@ -266,9 +266,6 @@ int snd_tplg_build_file(snd_tplg_t *tplg, const char *infile,
snd_config_t *cfg = NULL;
int err = 0;
- /* delete any old output files */
- unlink(outfile);
-
tplg->out_fd =
open(outfile, O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
if (tplg->out_fd < 0) {
--
2.1.4
More information about the Alsa-devel
mailing list