[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231020085106.12026-1-chaodong@nfschina.com>
Date: Fri, 20 Oct 2023 16:51:06 +0800
From: Wang chaodong <chaodong@...china.com>
To: rafael@...nel.org, pavel@....cz, len.brown@...el.com
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Wang chaodong <chaodong@...china.com>
Subject: [PATCH] power: snapshot: Remove unnecessary ‘0’ values from error
error is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Wang chaodong <chaodong@...china.com>
---
kernel/power/snapshot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 87e9f7e2bdc05..9acdc4458a36d 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -1119,7 +1119,7 @@ static void mark_nosave_pages(struct memory_bitmap *bm)
int create_basic_memory_bitmaps(void)
{
struct memory_bitmap *bm1, *bm2;
- int error = 0;
+ int error;
if (forbidden_pages_map && free_pages_map)
return 0;
--
2.18.2
Powered by blists - more mailing lists