diff mbox

[lib,4/5] topology: parser: Add missing return value to snd_tplg_set_manifest_data()

Message ID 1441743701-28165-5-git-send-email-tiwai@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Takashi Iwai Sept. 8, 2015, 8:21 p.m. UTC
Spotted by gcc warning:
  parser.c: In function ‘snd_tplg_set_manifest_data’:
  parser.c:361:1: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/topology/parser.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/src/topology/parser.c b/src/topology/parser.c
index ca7de0689cea..44c6146b22f2 100644
--- a/src/topology/parser.c
+++ b/src/topology/parser.c
@@ -358,6 +358,7 @@  int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len)
 {
 	tplg->manifest.priv.size = len;
 	tplg->manifest_pdata = data;
+	return 0;
 }
 
 void snd_tplg_verbose(snd_tplg_t *tplg, int verbose)