From: Bhumika Goyal Date: Sat, 13 Feb 2016 06:19:35 +0000 (+0530) Subject: Staging: media: Remove multiple assignments X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12f2a7b900f0fa8e2f466630c8bc76444aaf9f68;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: media: Remove multiple assignments 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/davinci_vpfe/dm365_isif.c b/drivers/staging/media/davinci_vpfe/dm365_isif.c index 65f6ce342a00..cfad426cdbb3 100644 --- a/drivers/staging/media/davinci_vpfe/dm365_isif.c +++ b/drivers/staging/media/davinci_vpfe/dm365_isif.c @@ -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");