Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
bb4049c9 86731a2a

+2 -2
+2 -2
drivers/acpi/wakeup.c
··· 42 42 list_for_each_entry_safe(dev, tmp, &acpi_wakeup_device_list, 43 43 wakeup_list) { 44 44 if (!dev->wakeup.flags.valid 45 - || sleep_state > (u32) dev->wakeup.sleep_state 45 + || sleep_state > dev->wakeup.sleep_state 46 46 || !(device_may_wakeup(&dev->dev) 47 47 || dev->wakeup.prepare_count)) 48 48 continue; ··· 67 67 list_for_each_entry_safe(dev, tmp, &acpi_wakeup_device_list, 68 68 wakeup_list) { 69 69 if (!dev->wakeup.flags.valid 70 - || sleep_state > (u32) dev->wakeup.sleep_state 70 + || sleep_state > dev->wakeup.sleep_state 71 71 || !(device_may_wakeup(&dev->dev) 72 72 || dev->wakeup.prepare_count)) 73 73 continue;