ACPI: bus: Drop redundant check in acpi_device_remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 18 Jun 2022 11:23:10 +0000 (13:23 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Jun 2022 12:11:21 +0000 (14:11 +0200)
commite5ed878ddb7cd95cd7886a0298fcb080eeab5e90
treeeb6aa41a272535057ec9964102666d3ebb94c1e0
parentdfc17f6eec035e103f0a7f046ec52da9b4c58268
ACPI: bus: Drop redundant check in acpi_device_remove()

A bus remove callback is only ever called by the device core with a
bound driver. So there is no need to check if the driver is non-NULL.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[ rjw: Added empty code line after if () ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c