aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBingwu Zhang <xtexchooser@duck.com>2024-11-16 18:12:28 +0800
committerDavid Gibson <david@gibson.dropbear.id.au>2024-11-18 14:26:34 +1100
commitb75515af4576173850734d6aed87069cef733961 (patch)
treef250f39846b33df69d4b7224e2f6cf541c62779d
parent2d10aa2afe35527728db30b35ec491ecb6959e5c (diff)
downloaddtc-b75515af4576173850734d6aed87069cef733961.zip
dtc-b75515af4576173850734d6aed87069cef733961.tar.gz
dtc-b75515af4576173850734d6aed87069cef733961.tar.bz2
libfdt: Remove extra semi-colons outside functions
When compiling with -Werror -Wpedantic, both GCC and Clang fails, saying that these semi-colons are redundant, so remove them. Signed-off-by: Bingwu Zhang <xtexchooser@duck.com> Message-ID: <20241116101228.164707-6-xtex@envs.net> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--libfdt/fdt_overlay.c2
-rw-r--r--libfdt/libfdt.h20
2 files changed, 11 insertions, 11 deletions
diff --git a/libfdt/fdt_overlay.c b/libfdt/fdt_overlay.c
index 28b667f..f61ca7e 100644
--- a/libfdt/fdt_overlay.c
+++ b/libfdt/fdt_overlay.c
@@ -351,7 +351,7 @@ static int overlay_fixup_one_phandle(void *fdt, void *fdto,
name, name_len, poffset,
&phandle_prop,
sizeof(phandle_prop));
-};
+}
/**
* overlay_fixup_phandle - Set an overlay phandle to the base one
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 96782bc..2e182ea 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -263,16 +263,16 @@ int fdt_next_subnode(const void *fdt, int offset);
struct fdt_header *fdth = (struct fdt_header *)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
-fdt_set_hdr_(magic);
-fdt_set_hdr_(totalsize);
-fdt_set_hdr_(off_dt_struct);
-fdt_set_hdr_(off_dt_strings);
-fdt_set_hdr_(off_mem_rsvmap);
-fdt_set_hdr_(version);
-fdt_set_hdr_(last_comp_version);
-fdt_set_hdr_(boot_cpuid_phys);
-fdt_set_hdr_(size_dt_strings);
-fdt_set_hdr_(size_dt_struct);
+fdt_set_hdr_(magic)
+fdt_set_hdr_(totalsize)
+fdt_set_hdr_(off_dt_struct)
+fdt_set_hdr_(off_dt_strings)
+fdt_set_hdr_(off_mem_rsvmap)
+fdt_set_hdr_(version)
+fdt_set_hdr_(last_comp_version)
+fdt_set_hdr_(boot_cpuid_phys)
+fdt_set_hdr_(size_dt_strings)
+fdt_set_hdr_(size_dt_struct)
#undef fdt_set_hdr_
/**