[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230713235339.3090-1-kunyu@nfschina.com>
Date: Fri, 14 Jul 2023 07:53:39 +0800
From: Li kunyu <kunyu@...china.com>
To: dan.j.williams@...el.com, Jonathan.Cameron@...wei.com,
gregkh@...uxfoundation.org, andriy.shevchenko@...ux.intel.com,
rafael@...nel.org, ira.weiny@...el.com
Cc: linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] kernel: resource: Remove unnecessary ‘0’ values from err
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
kernel/resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/resource.c b/kernel/resource.c
index b1763b2fd7ef..55a42f3c80be 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -656,7 +656,7 @@ static int reallocate_resource(struct resource *root, struct resource *old,
resource_size_t newsize,
struct resource_constraint *constraint)
{
- int err=0;
+ int err;
struct resource new = *old;
struct resource *conflict;
--
2.18.2
Powered by blists - more mailing lists