Commit b14e7b66 authored by Deepak R Varma's avatar Deepak R Varma Committed by Mauro Carvalho Chehab

media: staging: media: imx: remove unnecessary variable use

Use of variable vc_num is unnecessary here as it is used only once.
Instead, the value can directly be used in place of the variable.
Signed-off-by: default avatarDeepak R Varma <mh12gx2825@gmail.com>
Acked-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent c7b2c0cc
...@@ -1123,7 +1123,6 @@ static int csi_link_validate(struct v4l2_subdev *sd, ...@@ -1123,7 +1123,6 @@ static int csi_link_validate(struct v4l2_subdev *sd,
priv->upstream_ep = upstream_ep; priv->upstream_ep = upstream_ep;
is_csi2 = !is_parallel_bus(&upstream_ep); is_csi2 = !is_parallel_bus(&upstream_ep);
if (is_csi2) { if (is_csi2) {
int vc_num = 0;
/* /*
* NOTE! It seems the virtual channels from the mipi csi-2 * NOTE! It seems the virtual channels from the mipi csi-2
* receiver are used only for routing by the video mux's, * receiver are used only for routing by the video mux's,
...@@ -1131,7 +1130,7 @@ static int csi_link_validate(struct v4l2_subdev *sd, ...@@ -1131,7 +1130,7 @@ static int csi_link_validate(struct v4l2_subdev *sd,
* enters the CSI's however, they are treated internally * enters the CSI's however, they are treated internally
* in the IPU as virtual channel 0. * in the IPU as virtual channel 0.
*/ */
ipu_csi_set_mipi_datatype(priv->csi, vc_num, ipu_csi_set_mipi_datatype(priv->csi, 0,
&priv->format_mbus[CSI_SINK_PAD]); &priv->format_mbus[CSI_SINK_PAD]);
} }
......
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