summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-09-05 11:55:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-12 12:05:01 +0200
commit8a5b23aafc26038b0457fc3628ac5536cc6aa9ed (patch)
treef368582ca89b9b3468a885c849679e69410e0e29 /drivers
parent5058a25d1ed7f3bfa48cf84dfbe66a4160a8d9bf (diff)
downloadbarebox-8a5b23aafc26038b0457fc3628ac5536cc6aa9ed.tar.gz
barebox-8a5b23aafc26038b0457fc3628ac5536cc6aa9ed.tar.xz
of: partition: drop unused variable
The name variable is unused anywhere, so just drop it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220905095557.596891-25-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/partition.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 6c05e28ea9..abbda674d6 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))