media: staging: media: atomisp: pci: Balance braces around conditional statements...
authorAline Santana Cordeiro <alinesantanacordeiro@gmail.com>
Thu, 15 Apr 2021 16:54:34 +0000 (18:54 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 19 May 2021 07:51:37 +0000 (09:51 +0200)
Balance braces around conditional statements.
Issue detected by checkpatch.pl.
It happens in if-else statements where one of the commands
uses braces around a block of code and the other command
does not since it has just a single line of code.

Signed-off-by: Aline Santana Cordeiro <alinesantanacordeiro@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_subdev.c

index 2ef5f44e4b6b6a79827708edb4d157e8f48b8162..aeabd07bf518dca9cde0f1d8706bbcf748aa4ec8 100644 (file)
@@ -472,9 +472,9 @@ int atomisp_subdev_set_selection(struct v4l2_subdev *sd,
                         * when dvs is disabled.
                         */
                        dvs_w = dvs_h = 12;
-               } else
+               } else {
                        dvs_w = dvs_h = 0;
-
+               }
                atomisp_css_video_set_dis_envelope(isp_sd, dvs_w, dvs_h);
                atomisp_css_input_set_effective_resolution(isp_sd, stream_id,
                        crop[pad]->width, crop[pad]->height);