diff mbox series

[10/13] libpdbg: Drop unused struct dt_property

Message ID 20200115051901.17514-11-amitay@ozlabs.org
State Accepted
Headers show
Series Use fdt properties directly | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (8b4611b5d8e7e2279fe4aa80c892fcfe10aa398d)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Amitay Isaacs Jan. 15, 2020, 5:18 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/device.c | 15 ---------------
 1 file changed, 15 deletions(-)

Comments

Alistair Popple Jan. 16, 2020, 1:34 a.m. UTC | #1
Reviewed-by: Alistair Popple <alistair@popple.id.au>

On Wednesday, 15 January 2020 4:18:58 PM AEDT Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
> ---
>  libpdbg/device.c | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/libpdbg/device.c b/libpdbg/device.c
> index b60b0aa..6deeec5 100644
> --- a/libpdbg/device.c
> +++ b/libpdbg/device.c
> @@ -40,21 +40,6 @@ static uint32_t last_phandle = 0;
> 
>  static struct pdbg_target *pdbg_dt_root;
> 
> -/*
> - * An in-memory representation of a node in the device tree.
> - *
> - * This is trivially flattened into an fdt.
> - *
> - * Note that the add_* routines will make a copy of the name if it's not
> - * a read-only string (ie. usually a string literal).
> - */
> -struct dt_property {
> -	struct list_node list;
> -	const char *name;
> -	size_t len;
> -	char prop[/* len */];
> -};
> -
>  static const char *take_name(const char *name)
>  {
>  	if (!is_rodata(name) && !(name = strdup(name))) {
diff mbox series

Patch

diff --git a/libpdbg/device.c b/libpdbg/device.c
index b60b0aa..6deeec5 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -40,21 +40,6 @@  static uint32_t last_phandle = 0;
 
 static struct pdbg_target *pdbg_dt_root;
 
-/*
- * An in-memory representation of a node in the device tree.
- *
- * This is trivially flattened into an fdt.
- *
- * Note that the add_* routines will make a copy of the name if it's not
- * a read-only string (ie. usually a string literal).
- */
-struct dt_property {
-	struct list_node list;
-	const char *name;
-	size_t len;
-	char prop[/* len */];
-};
-
 static const char *take_name(const char *name)
 {
 	if (!is_rodata(name) && !(name = strdup(name))) {