staging: most: cdev: fix return values
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 22 Jun 2020 08:48:14 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jun 2020 13:40:28 +0000 (15:40 +0200)
commit78aee6516670d1f8f4e74e5982ea8d557f114b2b
tree1ed853a64f53f1745e68c01777f675f96fd70b0c
parente8e0f7fd7715de745ef522b5ed96e1f947e3fb91
staging: most: cdev: fix return values

This patch makes use of the proper return values when reporting
an error to the caller.

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