]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: media: atomisp: pci: Place constant on the right side in comparissons
authorGeorgiana Chelu <georgiana.chelu93@gmail.com>
Wed, 20 Sep 2017 12:28:49 +0000 (05:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Sep 2017 13:34:37 +0000 (15:34 +0200)
Fix issue found by checkpatch.pl script.
WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Georgiana Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c

index 520d59bda3bd64c8a006a48ebadfc0da1da9be05..5027fd20d96605631ed014ffa4815214fa5dc6d6 100644 (file)
@@ -896,12 +896,12 @@ static inline int __set_css_print_env(struct atomisp_device *isp, int opt)
 {
        int ret = 0;
 
-       if (0 == opt)
+       if (opt == 0)
                isp->css_env.isp_css_env.print_env.debug_print = NULL;
-       else if (1 == opt)
+       else if (opt == 1)
                isp->css_env.isp_css_env.print_env.debug_print =
                        atomisp_css2_dbg_ftrace_print;
-       else if (2 == opt)
+       else if (opt == 2)
                isp->css_env.isp_css_env.print_env.debug_print =
                        atomisp_css2_dbg_print;
        else
@@ -4706,7 +4706,7 @@ int atomisp_set_css_dbgfunc(struct atomisp_device *isp, int opt)
        int ret;
 
        ret = __set_css_print_env(isp, opt);
-       if (0 == ret)
+       if (ret == 0)
                dbg_func = opt;
 
        return ret;