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:
parent
2e58bb4a33
commit
00987f507c
@ -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,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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user