mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
[media] DaVinci-VPFE-Capture: Move two assignments in vpfe_s_input()
Move assignments for two local variables into an else branch so that their setting will only be performed after corresponding data processing succeeded by this function. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
2a0de2c842
commit
19d4695a4f
1 changed files with 4 additions and 1 deletions
|
@ -1109,7 +1109,7 @@ static int vpfe_s_input(struct file *file, void *priv, unsigned int index)
|
|||
struct vpfe_subdev_info *sdinfo;
|
||||
int subdev_index, inp_index;
|
||||
struct vpfe_route *route;
|
||||
u32 input = 0, output = 0;
|
||||
u32 input, output;
|
||||
int ret;
|
||||
|
||||
v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_s_input\n");
|
||||
|
@ -1142,6 +1142,9 @@ static int vpfe_s_input(struct file *file, void *priv, unsigned int index)
|
|||
if (route && sdinfo->can_route) {
|
||||
input = route->input;
|
||||
output = route->output;
|
||||
} else {
|
||||
input = 0;
|
||||
output = 0;
|
||||
}
|
||||
|
||||
if (sd)
|
||||
|
|
Loading…
Reference in a new issue