]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: atomisp: fixed a brace coding sytle issue
authorAnkit Baluni <b18007@students.iitmandi.ac.in>
Wed, 29 Jul 2020 07:49:50 +0000 (09:49 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 08:57:54 +0000 (10:57 +0200)
Removed braces for a 'if' condition as it contain only single line &
there is no need for braces for such case according to coding style
rules.

Signed-off-by: Ankit Baluni <b18007@students.iitmandi.ac.in>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c

index 8ea65bef35d24f4db4caa79c246e46f6df9d59ab..28b96b66f4f39655d5710ea22ab07c51e3cbf9c2 100644 (file)
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,
        case ATOMISP_CAMERA_PORT_SECONDARY:
                return MIPI_PORT1_ID;
        case ATOMISP_CAMERA_PORT_TERTIARY:
-               if (MIPI_PORT1_ID + 1 != N_MIPI_PORT_ID) {
+               if (MIPI_PORT1_ID + 1 != N_MIPI_PORT_ID)
                        return MIPI_PORT1_ID + 1;
-               }
        /* fall through */
        default:
                dev_err(isp->dev, "unsupported port: %d\n", port);