]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: core: Don't ignore errors at creating proc files
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2015 20:29:10 +0000 (22:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Apr 2015 15:31:06 +0000 (17:31 +0200)
commitc514453b09e67a0b8a0c58a430a9d34cf983af37
tree5ef26ea5c88a94d2f942f933ffe7bbaa7349e102
parent03b17915d8dac10ab1a7282a602c2da3c81d180e
ALSA: core: Don't ignore errors at creating proc files

So far we've ignored the errors at creating proc files in many places.
But they should be rather treated seriously.

Also, by assuring the error handling, we can get rid of superfluous
snd_info_free_entry() calls as they will be removed by the parent in
the caller side.

This patch fixes the missing error checks and reduces the superfluous
free calls.

Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c
sound/core/init.c
sound/core/seq/seq_info.c
sound/core/sound.c
sound/core/sound_oss.c