Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7eb21a88 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman
Browse files

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 287666df
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}
	}