]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: media: Remove multiple assignments
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 13 Feb 2016 06:19:35 +0000 (11:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:34:08 +0000 (16:34 -0800)
Remove multiple assignments by factorizing them.
Made a coccinelle script to match cases:
@@
identifier a,b;
constant c;
@@
-a=b=c;
+a=c;
+b=c;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_isif.c

index 65f6ce342a00f9075738c9947c6f20be950b9884..cfad426cdbb347d826326b47b09600e5b16fad2a 100644 (file)
@@ -1239,7 +1239,8 @@ static int isif_config_ycbcr(struct v4l2_subdev *sd, int mode)
         * a lot of registers that we didn't touch
         */
        /* start with all bits zero */
-       ccdcfg = modeset = 0;
+       ccdcfg = 0;
+       modeset = 0;
        pix_fmt = isif_get_pix_fmt(format->code);
        if (pix_fmt < 0) {
                pr_debug("Invalid pix_fmt(input mode)\n");