diff options
author | Mingyang Sun <mingyang.sun@arm.com> | 2021-06-30 19:08:48 +0800 |
---|---|---|
committer | Mingyang Sun <mingyang.sun@arm.com> | 2021-07-07 11:46:28 +0800 |
commit | 40c6359569df9ffa45eba5482a13533dda616b83 (patch) | |
tree | da40bb175e1bbb0bf93834968e4b382c448f3421 /secure_fw | |
parent | 6a92631917fcd30e78d68fbb2d579c8af7c18e95 (diff) | |
download | trusted-firmware-m-40c6359569df9ffa45eba5482a13533dda616b83.tar.gz |
SPM: Fix compiler warning
If passing an address to the macro "UNI_LISI_INIT_HEAD(head)",
the GNUARM compiler reports an warning:
“warning: the address of 'x' will always evaluate as 'true'”.
This patch is to eliminate this warning.
Change-Id: If07b5ed45f9757a78dbb68e25f1334c0cc9ab7d3
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'secure_fw')
-rw-r--r-- | secure_fw/spm/include/lists.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/secure_fw/spm/include/lists.h b/secure_fw/spm/include/lists.h index c630ff7aaf..c0962c5621 100644 --- a/secure_fw/spm/include/lists.h +++ b/secure_fw/spm/include/lists.h @@ -64,7 +64,7 @@ struct bi_list_node_t { /* Initialize the head node */ #define UNI_LISI_INIT_HEAD(head) do { \ - if (head) { \ + if ((head) != NULL) { \ (head)->next = NULL; \ } \ } while (0) |