media: ipu-bridge: Drop early setting of sensor->adev

sensor->adev is no longer dereferenced before it is permanently set by:

	sensor->adev = acpi_dev_get(adev);

So the early assignment with a borrowed reference can be dropped.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Hans de Goede 2023-07-05 23:30:01 +02:00 committed by Mauro Carvalho Chehab
parent dd671ed0c5
commit 1b081a4c1e
1 changed files with 0 additions and 5 deletions

View File

@ -342,11 +342,6 @@ static int ipu_bridge_connect_sensor(const struct ipu_sensor_config *cfg,
} }
sensor = &bridge->sensors[bridge->n_sensors]; sensor = &bridge->sensors[bridge->n_sensors];
/*
* Borrow our adev ref to the sensor for now, on success
* acpi_dev_get(adev) is done further below.
*/
sensor->adev = adev;
ret = ipu_bridge_parse_ssdb(adev, sensor); ret = ipu_bridge_parse_ssdb(adev, sensor);
if (ret) if (ret)