Unverified Commit 5b16668e authored by Wolfram Sang's avatar Wolfram Sang Committed by Mark Brown
Browse files

spi: acpi: remove superfluous parameter check

parent 1a421eba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4028,7 +4028,7 @@ static struct spi_device *acpi_spi_find_device_by_adev(struct acpi_device *adev)
	struct device *dev;

	dev = bus_find_device_by_acpi_dev(&spi_bus_type, adev);
	return dev ? to_spi_device(dev) : NULL;
	return to_spi_device(dev);
}

static int acpi_spi_notify(struct notifier_block *nb, unsigned long value,