[media] v4l: vsp1: Reuse local variable instead of recomputing it

No need to waste CPU cycles when the value we need is already available.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Laurent Pinchart 2015-08-02 17:43:36 -03:00 committed by Mauro Carvalho Chehab
parent f294c2f70e
commit f8562f218b

View file

@ -429,7 +429,7 @@ static int vsp1_video_pipeline_validate(struct vsp1_pipeline *pipe,
rwpf->video->pipe_index = pipe->num_inputs; rwpf->video->pipe_index = pipe->num_inputs;
} else if (e->type == VSP1_ENTITY_WPF) { } else if (e->type == VSP1_ENTITY_WPF) {
rwpf = to_rwpf(subdev); rwpf = to_rwpf(subdev);
pipe->output = to_rwpf(subdev); pipe->output = rwpf;
rwpf->video->pipe_index = 0; rwpf->video->pipe_index = 0;
} else if (e->type == VSP1_ENTITY_LIF) { } else if (e->type == VSP1_ENTITY_LIF) {
pipe->lif = e; pipe->lif = e;