staging: most: v4l2-aim: remove unnecessary label err_vbi_dev
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 6 Jun 2016 13:23:10 +0000 (15:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:17:04 +0000 (19:17 +0200)
For optimization purposes this patch removes the label err_vbi_dev.

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

index e0fee88..0cca9ce 100644 (file)
@@ -463,13 +463,9 @@ static int aim_register_videodev(struct most_video_dev *mdev)
        if (ret) {
                v4l2_err(&mdev->v4l2_dev, "video_register_device failed (%d)\n",
                         ret);
-               goto err_vbi_dev;
+               video_device_release(mdev->vdev);
        }
 
-       return 0;
-
-err_vbi_dev:
-       video_device_release(mdev->vdev);
        return ret;
 }