summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorLaurent Pinchart2015-08-02 22:43:36 +0200
committerMauro Carvalho Chehab2016-02-19 12:07:46 +0100
commitf8562f218b634871563260bf06ef33611167fc7a (patch)
tree3914a7d2991edad67a56adc1e925981e5ffa2927 /drivers/media/platform
parent[media] v4l: vsp1: Extract pipeline initialization code into a function (diff)
downloadkernel-qcow2-linux-f8562f218b634871563260bf06ef33611167fc7a.tar.gz
kernel-qcow2-linux-f8562f218b634871563260bf06ef33611167fc7a.tar.xz
kernel-qcow2-linux-f8562f218b634871563260bf06ef33611167fc7a.zip
[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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/vsp1/vsp1_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c
index 3d5ea4a325ba..b1bb63d2a365 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;