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)
commitb591b6e9e99017137888e2e397f0ddd8adb77c5d
tree5ef26ea5c88a94d2f942f933ffe7bbaa7349e102
parentb046d244e2290e3d114af2e91503ee3d08fc605a
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