From 81542c00d0d3d0609cfedf91f8d6f455672af684 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Thu, 4 Oct 2018 09:55:23 +0100 Subject: Remove some MISRA defects in common code No functional changes. Change-Id: I9638e02acb9b22eb794ebf45aad84348a710287e Signed-off-by: Antonio Nino Diaz --- include/common/fdt_wrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/common/fdt_wrappers.h') diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h index 18a6d1030..3eae944e5 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(len) ((len) / 4) +#define NCELLS(len) ((len) / 4U) int fdtw_read_cells(const void *dtb, int node, const char *prop, unsigned int cells, void *value); -- cgit v1.2.3