staging: most: fix error return code in audio_probe_channel()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 25 Sep 2016 15:41:11 +0000 (15:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:06:55 +0000 (13:06 +0200)
commitca8b3fa7ea44738f02979dfdc72a1d75a27dcddb
treed1d40015df738bacb78717f68ec418229fdf4b26
parent264f7b8ac3ec3e7a38affd8140da30f8720b5946
staging: most: fix error return code in audio_probe_channel()

Fix to return a negative error code from the audio_set_hw_params() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-sound/sound.c