From: Laurent Pinchart Date: Sun, 2 Aug 2015 20:43:36 +0000 (-0300) Subject: [media] v4l: vsp1: Reuse local variable instead of recomputing it X-Git-Tag: v4.9.8~2515^2^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8562f218b634871563260bf06ef33611167fc7a;p=platform%2Fkernel%2Flinux-rpi3.git [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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index 3d5ea4a..b1bb63d 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c @@ -429,7 +429,7 @@ static int vsp1_video_pipeline_validate(struct vsp1_pipeline *pipe, rwpf->video->pipe_index = pipe->num_inputs; } else if (e->type == VSP1_ENTITY_WPF) { rwpf = to_rwpf(subdev); - pipe->output = to_rwpf(subdev); + pipe->output = rwpf; rwpf->video->pipe_index = 0; } else if (e->type == VSP1_ENTITY_LIF) { pipe->lif = e;