diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2017-04-12 21:20:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-14 11:06:26 +0300 |
commit | 7eb21a88185d2cf9ad0257534cef4ebd9ad2725b (patch) | |
tree | 16591abc3ef2f4b7dbd9f9c4af3e4db29d5bf92e /drivers/staging/media | |
parent | 287666dfe83577a1c3407028b1b1a57137bea4fa (diff) | |
download | linux-7eb21a88185d2cf9ad0257534cef4ebd9ad2725b.tar.xz |
staging: atomisp: replace "&isp->asd[i]" with "asd" in __get_asd_from_port()
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>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c index 08606cb668f3..d98a6eac9cc2 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c @@ -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; } } |