Skip to content

Commit 9cd9d3f

Browse files
Zihuan Zhangrafaeljw
authored andcommitted
PM: sleep: Remove unnecessary !!
Since initcall_debug is a bool variable, it is not necessary to convert it to bool with the help of a double logical negation (!!). Remove the redundant operation. Signed-off-by: Zihuan Zhang <zhangzihuan@kylinos.cn> Link: https://patch.msgid.link/20250424060339.73119-1-zhangzihuan@kylinos.cn [ rjw: Changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 036c94c commit 9cd9d3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/power/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ power_attr(pm_print_times);
594594

595595
static inline void pm_print_times_init(void)
596596
{
597-
pm_print_times_enabled = !!initcall_debug;
597+
pm_print_times_enabled = initcall_debug;
598598
}
599599

600600
static ssize_t pm_wakeup_irq_show(struct kobject *kobj,

0 commit comments

Comments
 (0)