Media: imx: Cleanup constant zero preprocessor lines
PATCH 1/1 Media: imx: Cleanup constant zero preprocessor lines
This patch fixes the checkpatch.pl warning:
WARNING: Consider removing the code enclosed by this #if 0 and its #endif
Signed-off-by Wentao Cai <[email protected]>
--- drivers/staging/media/imx/imx-media-csi.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/staging/media/imx/imx-media-csi.c +0 -8
@@ -1081,14 +1081,6 @@ static int csi_link_validate(struct v4l2_subdev *sd,* enters the CSI's however, they are treated internally * in the IPU as virtual channel 0. */ -#if 0 -mutex_unlock (&priv->lock); - vc_num =imx_media_find_mipi_csi2_channel (priv->md, - &priv->sd.entity); -if (vc_num <0 ) -return vc_num; -mutex_lock (&priv->lock); -#endif ipu_csi_set_mipi_datatype (priv->csi, vc_num, &priv->format_mbus[CSI_SINK_PAD ]); }
Signature · 1 line
2.17.1
Acked-by Steve Longerbeam <[email protected]>
Quoted 27 lines · Wentao Cai
This patch fixes the checkpatch.pl warning:
WARNING: Consider removing the code enclosed by this #if 0 and its #endifSigned-off-by Wentao Cai <[email protected]>--- drivers/staging/media/imx/imx-media-csi.c | 8 -------- 1 file changed, 8 deletions(-)drivers/staging/media/imx/imx-media-csi.c +0
-8@@ -1081,14 +1081,6 @@ static int csi_link_validate(struct v4l2_subdev *sd,* enters the CSI's however, they are treated internally * in the IPU as virtual channel 0. */ -#if 0 -mutex_unlock (&priv->lock); - vc_num =imx_media_find_mipi_csi2_channel (priv->md, - &priv->sd.entity); -if (vc_num <0 ) -return vc_num; -mutex_lock (&priv->lock); -#endif ipu_csi_set_mipi_datatype (priv->csi, vc_num, &priv->format_mbus[CSI_SINK_PAD ]); }