Commit a39c4ad1089be34d8dc66e926e93a52c44993a0a

Authored by Hannes Eder
Committed by Takashi Iwai
1 parent 9bf1a2445f

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: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -457,7 +457,7 @@
457 457  
458 458 void unregister_sound_midi(int unit)
459 459 {
460   - return sound_remove_unit(&chains[2], unit);
  460 + sound_remove_unit(&chains[2], unit);
461 461 }
462 462  
463 463 EXPORT_SYMBOL(unregister_sound_midi);
... ... @@ -474,7 +474,7 @@
474 474  
475 475 void unregister_sound_dsp(int unit)
476 476 {
477   - return sound_remove_unit(&chains[3], unit);
  477 + sound_remove_unit(&chains[3], unit);
478 478 }
479 479  
480 480  
... ... @@ -507,7 +507,7 @@
507 507 return NULL;
508 508 }
509 509  
510   -int soundcore_open(struct inode *inode, struct file *file)
  510 +static int soundcore_open(struct inode *inode, struct file *file)
511 511 {
512 512 int chain;
513 513 int unit = iminor(inode);