staging: most: v4l2-aim: remove unnecessary retval
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 6 Jun 2016 13:23:09 +0000 (15:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:17:04 +0000 (19:17 +0200)
commitb23e8e51e6dc40cfbdb0ae3f60fc0da3a3fda5a8
treea2a541f20f9ee292aa83853554dcf97296dce1eb
parent8f6f9ed15d679ad9384efd74d39aed4438cd0252
staging: most: v4l2-aim: remove unnecessary retval

The function aim_register_videodev() uses the variables 'ret' and
'retval' to represent the same value.

This patch removes 'retval' and replaces it with 'ret'. Further, it
replaces the constant return value '-ENODEV' with the result returned by
function video_register_device() in the event something went wrong.

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-v4l2/video.c