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

Commit 38475b3b authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI / scan: Remove useless #ifndef from acpi_eject_store()



Since the FORCE_EJECT symbol is never defined, the
#ifndef FORCE_EJECT in acpi_eject_store() is always true, so drop it.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Tested-by: default avatarYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Reviewed-by: default avatarToshi Kani <toshi.kani@hp.com>
Tested-by: default avatarToshi Kani <toshi.kani@hp.com>
parent 5f27ee8e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -202,12 +202,10 @@ acpi_eject_store(struct device *d, struct device_attribute *attr,
	if ((!count) || (buf[0] != '1')) {
		return -EINVAL;
	}
#ifndef FORCE_EJECT
	if (!acpi_device->driver && !acpi_device->handler) {
		ret = -ENODEV;
		goto err;
	}
#endif
	status = acpi_get_type(acpi_device->handle, &type);
	if (ACPI_FAILURE(status) || (!acpi_device->flags.ejectable)) {
		ret = -ENODEV;