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>
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
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;
if (ret) {
assert(port < max_ports);
- if (port >= max_ports) {
+ if (port >= max_ports)
ret = false;
- }
}
*pport = port;