staging: most: v4l2-aim: remove unnecessary label err_vbi_dev

For optimization purposes this patch removes the label err_vbi_dev.

Signed-off-by: Andrey Shvetsov <[email protected]>
Signed-off-by: Christian Gromm <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Christian Gromm authored and Greg Kroah-Hartman committed 2016-08-15 19:17:04 +02:00
1 parent b23e8e51e6
commit eab231c039
1 file changed
+1 -5
+1 -5
View 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;
}