Skip to content

Commit 7eb21a8

Browse files
daeseokyoungregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 287666d commit 7eb21a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ __get_asd_from_port(struct atomisp_device *isp, mipi_port_ID_t port)
536536
struct camera_mipi_info *mipi_info =
537537
atomisp_to_sensor_mipi_info(
538538
isp->inputs[asd->input_curr].camera);
539-
if (isp->asd[i].streaming == ATOMISP_DEVICE_STREAMING_ENABLED &&
539+
if (asd->streaming == ATOMISP_DEVICE_STREAMING_ENABLED &&
540540
__get_mipi_port(isp, mipi_info->port) == port) {
541-
return &isp->asd[i];
541+
return asd;
542542
}
543543
}
544544

0 commit comments

Comments
 (0)