diff mbox

topology: fix output file unlinking

Message ID 1439299559-5051-1-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liam Girdwood Aug. 11, 2015, 1:25 p.m. UTC
Unlinking is unecessary as the old file will be overwritten with the new
as intended.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 src/topology/parser.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

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) {