From: Christian Gromm Date: Mon, 6 Jun 2016 13:23:10 +0000 (+0200) Subject: staging: most: v4l2-aim: remove unnecessary label err_vbi_dev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eab231c0398a91fbd294672bfe9e0ff45b368246;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Christian Gromm Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index e0fee8807312..0cca9ce87464 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -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; }