From eab231c0398a91fbd294672bfe9e0ff45b368246 Mon Sep 17 00:00:00 2001 From: Christian Gromm Date: Mon, 6 Jun 2016 15:23:10 +0200 Subject: [PATCH] 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 --- drivers/staging/most/aim-v4l2/video.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } -- 2.30.2