media: atomisp: Remove unused port_enabled variable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 May 2021 12:43:22 +0000 (14:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 23 Jul 2021 07:04:02 +0000 (09:04 +0200)
Remove unused port_enabled variable in ia_css_isys_rx_configure().

Link: https://lore.kernel.org/linux-media/20210526124322.48915-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/runtime/isys/src/rx.c

index 4a18da6..60b98c1 100644 (file)
@@ -479,7 +479,6 @@ unsigned int ia_css_csi2_calculate_input_system_alignment(
 void ia_css_isys_rx_configure(const rx_cfg_t *config,
                              const enum ia_css_input_mode input_mode)
 {
-       bool port_enabled[N_MIPI_PORT_ID];
        bool any_port_enabled = false;
        enum mipi_port_id port;
 
@@ -516,8 +515,6 @@ void ia_css_isys_rx_configure(const rx_cfg_t *config,
                                        _HRT_CSS_RECEIVER_2400_RX_COUNT_REG_IDX,
                                        config->rxcount);
 
-               port_enabled[port] = true;
-
                if (input_mode != IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
                        /* MW: A bit of a hack, straight wiring of the capture
                         * units,assuming they are linearly enumerated. */