Skip to content

Commit

Permalink
sound/sound_core: Fix sparse warnings
Browse files Browse the repository at this point in the history
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: Hannes Eder <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
hanneseder-net authored and tiwai committed Nov 21, 2008
1 parent 9bf1a24 commit a39c4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/sound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ EXPORT_SYMBOL(unregister_sound_mixer);

void unregister_sound_midi(int unit)
{
return sound_remove_unit(&chains[2], unit);
sound_remove_unit(&chains[2], unit);
}

EXPORT_SYMBOL(unregister_sound_midi);
Expand All @@ -474,7 +474,7 @@ EXPORT_SYMBOL(unregister_sound_midi);

void unregister_sound_dsp(int unit)
{
return sound_remove_unit(&chains[3], unit);
sound_remove_unit(&chains[3], unit);
}


Expand Down Expand Up @@ -507,7 +507,7 @@ static struct sound_unit *__look_for_unit(int chain, int unit)
return NULL;
}

int soundcore_open(struct inode *inode, struct file *file)
static int soundcore_open(struct inode *inode, struct file *file)
{
int chain;
int unit = iminor(inode);
Expand Down

0 comments on commit a39c4ad

Please sign in to comment.