Commit 15a78313 authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab

[media] DaVinci-VPBE: Rename a jump label in vpbe_set_output()

Adjust jump labels according to the Linux coding style convention.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 837fdcf0
...@@ -254,20 +254,20 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index) ...@@ -254,20 +254,20 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index)
sd_index = vpbe_find_encoder_sd_index(cfg, index); sd_index = vpbe_find_encoder_sd_index(cfg, index);
if (sd_index < 0) { if (sd_index < 0) {
ret = -EINVAL; ret = -EINVAL;
goto out; goto unlock;
} }
if_params = cfg->outputs[index].if_params; if_params = cfg->outputs[index].if_params;
venc_device->setup_if_config(if_params); venc_device->setup_if_config(if_params);
if (ret) if (ret)
goto out; goto unlock;
} }
/* Set output at the encoder */ /* Set output at the encoder */
ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video,
s_routing, 0, enc_out_index, 0); s_routing, 0, enc_out_index, 0);
if (ret) if (ret)
goto out; goto unlock;
/* /*
* It is assumed that venc or extenal encoder will set a default * It is assumed that venc or extenal encoder will set a default
...@@ -289,7 +289,7 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index) ...@@ -289,7 +289,7 @@ static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index)
vpbe_dev->current_sd_index = sd_index; vpbe_dev->current_sd_index = sd_index;
vpbe_dev->current_out_index = index; vpbe_dev->current_out_index = index;
} }
out: unlock:
mutex_unlock(&vpbe_dev->lock); mutex_unlock(&vpbe_dev->lock);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment