diff options
author | Soby Mathew <soby.mathew@arm.com> | 2018-02-21 01:16:39 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2018-02-26 16:31:11 +0000 |
commit | da5f274572c063962556821914e2f64db5ae3d2d (patch) | |
tree | 0a23e2f3c17a912c7374e41a179a7a96d7136f40 /include/common/fdt_wrappers.h | |
parent | ce6d9643ad9c83b9183ea3f910aee88a22b13532 (diff) | |
download | platform_external_arm-trusted-firmware-da5f274572c063962556821914e2f64db5ae3d2d.tar.gz platform_external_arm-trusted-firmware-da5f274572c063962556821914e2f64db5ae3d2d.tar.bz2 platform_external_arm-trusted-firmware-da5f274572c063962556821914e2f64db5ae3d2d.zip |
Dynamic cfg: MISRA fixes
Change-Id: I1d85b76af002b8b672fcaeca94939b7420bc8243
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Diffstat (limited to 'include/common/fdt_wrappers.h')
-rw-r--r-- | include/common/fdt_wrappers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h index db72f1803..18a6d1030 100644 --- a/include/common/fdt_wrappers.h +++ b/include/common/fdt_wrappers.h @@ -10,7 +10,7 @@ #define __FDT_WRAPPERS__ /* Number of cells, given total length in bytes. Each cell is 4 bytes long */ -#define NCELLS(l) (l / 4) +#define NCELLS(len) ((len) / 4) int fdtw_read_cells(const void *dtb, int node, const char *prop, unsigned int cells, void *value); |