diff options
author | 2024-01-29 17:13:14 +0100 | |
---|---|---|
committer | 2024-02-05 14:26:27 +0100 | |
commit | 2231f78d3e15e45abe534db1997bc6a2153dc01c (patch) | |
tree | 750cdb2b88eb46de1d99e252cc5b46720eae8301 /include | |
parent | PM: sleep: stats: Use an array of step failure counters (diff) | |
download | wireguard-linux-2231f78d3e15e45abe534db1997bc6a2153dc01c.tar.xz wireguard-linux-2231f78d3e15e45abe534db1997bc6a2153dc01c.zip |
PM: sleep: stats: Use unsigned int for success and failure counters
Change the type of the "success" and "fail" fields in struct
suspend_stats to unsigned int, because they cannot be negative.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/suspend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 5e4c4d4aed95..216bae989535 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -56,8 +56,8 @@ enum suspend_stat_step { struct suspend_stats { unsigned int step_failures[SUSPEND_NR_STEPS]; - int success; - int fail; + unsigned int success; + unsigned int fail; #define REC_FAILED_NUM 2 int last_failed_dev; char failed_devs[REC_FAILED_NUM][40]; |