]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: Use the common error path in __snd_pcm_lib_xfer()
authorTakashi Iwai <tiwai@suse.de>
Fri, 25 Jan 2019 16:31:59 +0000 (17:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 25 Jan 2019 16:31:59 +0000 (17:31 +0100)
commit315d9f1bee40b20d399176acb1e27036abbd4384
tree27e1eeac30651f04c20919864b94cc3653f03fd1
parent2dee43ec3f31de39dc74e76e6ed65d976f486df0
ALSA: pcm: Use the common error path in __snd_pcm_lib_xfer()

An open-coded error path in __snd_pcm_lib_xfer() can be replaced with
the simple goto to the common error path.  This also makes the error
handling more consistent, i.e. when some samples have been already
processed, return that size instead of the error code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c