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: Varsha Rao <rvarsha016@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Varsha Rao 2017-03-19 18:06:24 +05:30 committed by Greg Kroah-Hartman
parent 2e58bb4a33
commit 00987f507c
3 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -97,9 +97,8 @@ 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;

View File

@ -79,9 +79,8 @@ 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;