summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-13 06:19:35 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-15 00:34:08 (GMT)
commit12f2a7b900f0fa8e2f466630c8bc76444aaf9f68 (patch)
tree3bb8c96ba0eb64498625f7ea82fe1cb130191f04 /drivers
parentc611d48e65e25af2dc0176e9ac135116095ed03d (diff)
downloadlinux-12f2a7b900f0fa8e2f466630c8bc76444aaf9f68.tar.xz
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 <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/media/davinci_vpfe/dm365_isif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/media/davinci_vpfe/dm365_isif.c b/drivers/staging/media/davinci_vpfe/dm365_isif.c
index 65f6ce3..cfad426 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");