]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: media: atomisp: Remove unnecessary braces.
authorVarsha Rao <rvarsha016@gmail.com>
Sun, 19 Mar 2017 12:36:24 +0000 (18:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:39:10 +0000 (08:39 +0100)
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>
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/ctc/ctc2/ia_css_ctc2.host.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_mipi.c

index 5d58dc178c19e2d2f7a2db6bdb00f7a14f2132f5..07bd24edc7bf6b38bdd501d1bdd746651b8c0a9f 100644 (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
index f61bfab8e4420f4eb3308e12f12a1cabd43cb822..955b6c8a87380ce1eb4905d28712c381a6f390d4 100644 (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;
index 8bc1ca07957fd20264951b113eed09145e6e90b2..7e3893c6c08aa3edb5a2aafcaa64f00b4bd16795 100644 (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;