Commit a39c4ad1 authored by Hannes Eder's avatar Hannes Eder Committed by Takashi Iwai

sound/sound_core: Fix sparse warnings

Fix the following sparse warnings:

sound/sound_core.c:460:2: warning: returning void-valued expression
sound/sound_core.c:477:2: warning: returning void-valued expression
sound/sound_core.c:510:5: warning: symbol 'soundcore_open' was not
declared. Should it be static?
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9bf1a244
...@@ -457,7 +457,7 @@ EXPORT_SYMBOL(unregister_sound_mixer); ...@@ -457,7 +457,7 @@ EXPORT_SYMBOL(unregister_sound_mixer);
void unregister_sound_midi(int unit) void unregister_sound_midi(int unit)
{ {
return sound_remove_unit(&chains[2], unit); sound_remove_unit(&chains[2], unit);
} }
EXPORT_SYMBOL(unregister_sound_midi); EXPORT_SYMBOL(unregister_sound_midi);
...@@ -474,7 +474,7 @@ EXPORT_SYMBOL(unregister_sound_midi); ...@@ -474,7 +474,7 @@ EXPORT_SYMBOL(unregister_sound_midi);
void unregister_sound_dsp(int unit) void unregister_sound_dsp(int unit)
{ {
return sound_remove_unit(&chains[3], unit); sound_remove_unit(&chains[3], unit);
} }
...@@ -507,7 +507,7 @@ static struct sound_unit *__look_for_unit(int chain, int unit) ...@@ -507,7 +507,7 @@ static struct sound_unit *__look_for_unit(int chain, int unit)
return NULL; return NULL;
} }
int soundcore_open(struct inode *inode, struct file *file) static int soundcore_open(struct inode *inode, struct file *file)
{ {
int chain; int chain;
int unit = iminor(inode); int unit = iminor(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment