Skip to content

Commit bb4049c

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: wakeup: Drop unneeded casting for sleep_state
Back to the original patch [1] sleep_state was defined as a custom acpi_integer type variable. Nowadays it's plain u64. No need to have casting for it anymore. Link: https://bugzilla.kernel.org/show_bug.cgi?id=1415 [1] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250612201321.3536493-2-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 86731a2 commit bb4049c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/acpi/wakeup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void acpi_enable_wakeup_devices(u8 sleep_state)
4242
list_for_each_entry_safe(dev, tmp, &acpi_wakeup_device_list,
4343
wakeup_list) {
4444
if (!dev->wakeup.flags.valid
45-
|| sleep_state > (u32) dev->wakeup.sleep_state
45+
|| sleep_state > dev->wakeup.sleep_state
4646
|| !(device_may_wakeup(&dev->dev)
4747
|| dev->wakeup.prepare_count))
4848
continue;
@@ -67,7 +67,7 @@ void acpi_disable_wakeup_devices(u8 sleep_state)
6767
list_for_each_entry_safe(dev, tmp, &acpi_wakeup_device_list,
6868
wakeup_list) {
6969
if (!dev->wakeup.flags.valid
70-
|| sleep_state > (u32) dev->wakeup.sleep_state
70+
|| sleep_state > dev->wakeup.sleep_state
7171
|| !(device_may_wakeup(&dev->dev)
7272
|| dev->wakeup.prepare_count))
7373
continue;

0 commit comments

Comments
 (0)