staging: most: sound: fix error path
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 23 Jun 2020 15:07:32 +0000 (17:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jun 2020 13:41:17 +0000 (15:41 +0200)
commit36b67efe0cb3b33f6d58e1e86d5b2a02ff5ab387
tree59d059f299a0a230606e62d9c116d0d2485c14ec
parentc0b122a04e1274b6714a3a1176a89fb0c98b82e4
staging: most: sound: fix error path

Return error and exit the function in case registering the component
with the core is failing.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1592924855-25569-3-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/sound/sound.c