diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.c index c96340d8c68f51c0530169c36cbd267bc972c38e..5d58dc178c19e2d2f7a2db6bdb00f7a14f2132f5 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.c @@ -29,8 +29,6 @@ const struct ia_css_ctc2_config default_ctc2_config = { BASIC_VAL * 8, INEFFECTIVE_VAL, INEFFECTIVE_VAL, BASIC_VAL >> 1, BASIC_VAL}; - - /* (dydx) = ctc2_slope(y1, y0, x1, x0) * ----------------------------------------------- * Calculation of the Slope of a Line = ((y1 - y0) >> 8)/(x1 - x0) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c index 9355b445bd6be6b8917c46737132d026f8dfac06..f61bfab8e4420f4eb3308e12f12a1cabd43cb822 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c @@ -51,7 +51,6 @@ static const int16_t b[XNR3_LOOK_UP_TABLE_POINTS] = { static const int16_t c[XNR3_LOOK_UP_TABLE_POINTS] = { 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - /* #endif * Default kernel parameters. In general, default is bypass mode or as close @@ -224,7 +223,6 @@ ia_css_xnr3_vmem_encode( to->c[0][i] = 0; } - /* Constraints on "x": * - values should be greater or equal to 0. * - values should be ascending. @@ -237,7 +235,6 @@ ia_css_xnr3_vmem_encode( } - /* The implementation of the calulating 1/x is based on the availability * of the OP_vec_shuffle16 operation. * A 64 element vector is split up in 4 blocks of 16 element. Each array is copied to @@ -257,8 +254,6 @@ ia_css_xnr3_vmem_encode( } } - - #endif /* Dummy Function added as the tool expects it*/ void diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_mipi.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_mipi.c index fdbb96a58b87399b9de957ffd9c1c6c01058a961..8bc1ca07957fd20264951b113eed09145e6e90b2 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_mipi.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_mipi.c @@ -209,7 +209,6 @@ ia_css_mipi_frame_calculate_size(const unsigned int width, * payload lines. */ - words_per_odd_line = (odd_line_bytes + 3) >> 2; /* ceil(odd_line_bytes/4); word = 4 bytes */ words_per_even_line = (even_line_bytes + 3) >> 2; @@ -251,7 +250,6 @@ ia_css_mipi_frame_enable_check_on_size(const enum ia_css_csi2_port port, OP___assert(port < N_CSI_PORTS); OP___assert(size_mem_words != 0); - for (idx = 0; idx < IA_CSS_MIPI_SIZE_CHECK_MAX_NOF_ENTRIES_PER_PORT && my_css.mipi_sizes_for_check[port][idx] != 0; idx++) { /* do nothing */ diff --git a/drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c b/drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c index 81651549a52da9720de73142134673f6997b515c..5b4506a71126b72407d19794ba894125681338cd 100644 --- a/drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c +++ b/drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c @@ -29,7 +29,6 @@ #define ELDO2_1P8V 0x16 #define ELDO2_CTRL_SHIFT 0x01 - struct gmin_subdev { struct v4l2_subdev *subdev; int clock_num; @@ -489,7 +488,6 @@ int gmin_v1p8_ctrl(struct v4l2_subdev *subdev, int on) return regulator_disable(gs->v1p8_reg); } - return -EINVAL; }