[PATCH 24/32] of: partition: drop unused variable
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Sep 5 02:55:49 PDT 2022
The name variable is unused anywhere, so just drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/of/partition.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 6c05e28ea9a8..abbda674d6cb 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -31,7 +31,6 @@ struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node)
struct cdev *new;
const __be32 *reg;
u64 offset, size;
- const char *name;
int len;
unsigned long flags = 0;
int na, ns;
@@ -60,8 +59,6 @@ struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node)
if (!partname)
return NULL;
- name = (char *)partname;
-
debug("add partition: %s.%s 0x%08llx 0x%08llx\n", cdev->name, partname, offset, size);
if (of_get_property(node, "read-only", NULL))
--
2.30.2
More information about the barebox
mailing list