Skip to contentSkip to conversation

sound: hdspm.c fix returning void expression warnings

PATCH In review Harvey Harrison 1 participant 1 message Feb 28, 2008 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 8/8 sound: hdspm.c fix returning void expression warnings

Just drop the returns.
sound/pci/rme9652/hdspm.c:1031:3: warning: returning void-valued expression sound/pci/rme9652/hdspm.c:1033:3: warning: returning void-valued expression

---
 sound/pci/rme9652/hdspm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/pci/rme9652/hdspm.c +2 -2
index 9a19ae6..38c931c 100644
@@ -1028,9 +1028,9 @@ static inline void snd_hdspm_midi_write_byte (struct hdspm *hdspm, int id,
 {
 	/* the hardware already does the relevant bit-mask with 0xff */
 	if (id)
-		return hdspm_write(hdspm, HDSPM_midiDataOut1, val);
+		hdspm_write(hdspm, HDSPM_midiDataOut1, val);
 	else
-		return hdspm_write(hdspm, HDSPM_midiDataOut0, val);
+		hdspm_write(hdspm, HDSPM_midiDataOut0, val);
 }
 
 static inline int snd_hdspm_midi_input_available (struct hdspm *hdspm, int id)
Signature · 1 line
1.5.4.3.342.g99e8