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)
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

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge