media: atomisp: Avoid comma separated statements
authorJoe Perches <joe@perches.com>
Tue, 25 Aug 2020 04:56:18 +0000 (06:56 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 09:05:37 +0000 (11:05 +0200)
Use semicolons and braces.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_subdev.c

index 6ba817f1565540dbfb016adb1a5fb00e77e7f450..52b9fb18c87f00ef54f76d13801c5e9401fffb28 100644 (file)
@@ -410,8 +410,10 @@ int atomisp_subdev_set_selection(struct v4l2_subdev *sd,
 
                if (atomisp_subdev_format_conversion(isp_sd,
                                                     isp_sd->capture_pad)
-                   && crop[pad]->width && crop[pad]->height)
-                       crop[pad]->width -= padding_w, crop[pad]->height -= padding_h;
+                   && crop[pad]->width && crop[pad]->height) {
+                       crop[pad]->width -= padding_w;
+                       crop[pad]->height -= padding_h;
+               }
 
                /* if subdev type is SOC camera,we do not need to set DVS */
                if (isp->inputs[isp_sd->input_curr].type == SOC_CAMERA)