aboutsummaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-20 14:17:18 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-20 14:17:18 +0300
commit68fcd6d027b88581992b4fb10ee1edc301e30678 (patch)
treec75ce91b2db43e562447b88958cff6eebaa96c98 /include/libfdt.h
parent64405594929502951624942e2a9ca53077aba2ae (diff)
downloadkmi-68fcd6d027b88581992b4fb10ee1edc301e30678.tar.gz
kmi-68fcd6d027b88581992b4fb10ee1edc301e30678.zip
Some slight robustness improvements and obo errors
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index 7425aef..406b6d7 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -9,7 +9,7 @@ void __dbg_fdt(void *fdt, int node_offset, int depth);
#define dbg_fdt(...)
#endif
-#define fdt_load_int_ptr(t, c, p)\
- ((c) == 2 ? (t)fdt64_to_cpu(*(fdt64_t *)(p)) : (t)fdt32_to_cpu(*(fdt32_t *)(p)))
+#define fdt_load_int_ptr(c, p)\
+ ((c) == 2 ? fdt64_to_cpu(*(fdt64_t *)(p)) : fdt32_to_cpu(*(fdt32_t *)(p)))
#endif