Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00987f50 authored by Varsha Rao's avatar Varsha Rao Committed by Greg Kroah-Hartman
Browse files

staging: media: atomisp: Remove unnecessary braces.



Remove braces which are not required to fix the check patch issue. The
following coccinelle script is used to fix this issue.

@@
expression e,e1;
@@
if(e)
-{
 e1;
-}

Signed-off-by: default avatarVarsha Rao <rvarsha016@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e58bb4a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -52,9 +52,8 @@ static int ctc2_slope(int y1, int y0, int x1, int x0)
	assert(x1 > 0 && x1 <= max_slope);
	assert(dx > 0);

	if (dy < 0) {
	if (dy < 0)
		rounding = -rounding;
	}
	slope = (int) (dy_shift + rounding) / dx;

	/*the slope must lie within the range
+1 −2
Original line number Diff line number Diff line
@@ -97,10 +97,9 @@ compute_alpha(int sigma)
		alpha = ((IA_CSS_XNR3_SIGMA_SCALE * XNR_ALPHA_SCALE_FACTOR) + offset)/ sigma;
#endif

		if (alpha > XNR_MAX_ALPHA) {
		if (alpha > XNR_MAX_ALPHA)
			alpha = XNR_MAX_ALPHA;
	}
	}

	return alpha;
}
+1 −2
Original line number Diff line number Diff line
@@ -79,10 +79,9 @@ static bool ia_css_mipi_is_source_port_valid(struct ia_css_pipe *pipe,
	if (ret) {
		assert(port < max_ports);

		if (port >= max_ports) {
		if (port >= max_ports)
			ret = false;
	}
	}

	*pport = port;