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

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
......@@ -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
......
......@@ -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;
}
......
......@@ -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;
......
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