aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZihuan Zhang <zhangzihuan@kylinos.cn>2025-04-24 14:03:39 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-04-25 20:49:20 +0200
commit9cd9d3fdd72b21b9ea47a8e1a08959d833b6e6ef (patch)
treeac97f3c6f899a6ea5a370536534881874bf22c5f
parentPM: sleep: Use two lines for "Restarting..." / "done" messages (diff)
downloadlinux-9cd9d3fdd72b21b9ea47a8e1a08959d833b6e6ef.tar.gz
linux-9cd9d3fdd72b21b9ea47a8e1a08959d833b6e6ef.zip
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>
-rw-r--r--kernel/power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 6254814d4817..97746f08b762 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -594,7 +594,7 @@ power_attr(pm_print_times);
static inline void pm_print_times_init(void)
{
- pm_print_times_enabled = !!initcall_debug;
+ pm_print_times_enabled = initcall_debug;
}
static ssize_t pm_wakeup_irq_show(struct kobject *kobj,