OSDN Git Service

media: staging: media: atomisp: pci: Balance braces around conditional statements...
authorAline Santana Cordeiro <alinesantanacordeiro@gmail.com>
Thu, 15 Apr 2021 16:54:27 +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_compat_css20.c

index ce31652..f60198b 100644 (file)
@@ -2782,9 +2782,9 @@ int atomisp_get_css_frame_info(struct atomisp_sub_device *asd,
        int stream_index;
        struct atomisp_device *isp = asd->isp;
 
-       if (ATOMISP_SOC_CAMERA(asd))
+       if (ATOMISP_SOC_CAMERA(asd)) {
                stream_index = atomisp_source_pad_to_stream_id(asd, source_pad);
-       else {
+       else {
                stream_index = (pipe_index == IA_CSS_PIPE_ID_YUVPP) ?
                               ATOMISP_INPUT_STREAM_VIDEO :
                               atomisp_source_pad_to_stream_id(asd, source_pad);