staging: atomisp: replace "&isp->asd[i]" with "asd" in __get_asd_from_port()
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 12 Apr 2017 18:20:36 +0000 (19:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Apr 2017 08:06:26 +0000 (10:06 +0200)
The address of isp->asd[i] is already assigned to
local "asd" variable. "&isp->asd[i]" would be replaced with
just "asd".

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c

index 08606cb668f3c6acb0e2b96ddae25bf4d4244536..d98a6eac9cc26a81da505e6b9400953efdde8f83 100644 (file)
@@ -536,9 +536,9 @@ __get_asd_from_port(struct atomisp_device *isp, mipi_port_ID_t port)
                struct camera_mipi_info *mipi_info =
                                atomisp_to_sensor_mipi_info(
                                        isp->inputs[asd->input_curr].camera);
-               if (isp->asd[i].streaming == ATOMISP_DEVICE_STREAMING_ENABLED &&
+               if (asd->streaming == ATOMISP_DEVICE_STREAMING_ENABLED &&
                    __get_mipi_port(isp, mipi_info->port) == port) {
-                       return &isp->asd[i];
+                       return asd;
                }
        }