diff options
author | Zelalem <zelalem.aweke@arm.com> | 2020-02-12 10:37:03 -0600 |
---|---|---|
committer | Zelalem <zelalem.aweke@arm.com> | 2020-02-18 10:47:46 -0600 |
commit | 2fe75a2de087ec23162c5fd25ba439bd330ea50c (patch) | |
tree | 8fdfe111e09b5de4d7495c03ea4cde6ba29ee2af /drivers | |
parent | 572fcdd547753d668ca1146ca420664ccc3ac6fb (diff) | |
download | platform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.tar.gz platform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.tar.bz2 platform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.zip |
coverity: fix MISRA violations
Fixes for the following MISRA violations:
- Missing explicit parentheses on sub-expression
- An identifier or macro name beginning with an
underscore, shall not be declared
- Type mismatch in BL1 SMC handlers and tspd_main.c
Change-Id: I7a92abf260da95acb0846b27c2997b59b059efc4
Signed-off-by: Zelalem <zelalem.aweke@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cfi/v2m/v2m_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cfi/v2m/v2m_flash.c b/drivers/cfi/v2m/v2m_flash.c index aadafbce2..669018919 100644 --- a/drivers/cfi/v2m/v2m_flash.c +++ b/drivers/cfi/v2m/v2m_flash.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -27,7 +27,7 @@ #define DWS_WORD_LOCK_RETRIES 1000 /* Helper macro to detect end of command */ -#define NOR_CMD_END (NOR_DWS | NOR_DWS << 16l) +#define NOR_CMD_END (NOR_DWS | (NOR_DWS << 16l)) /* Helper macros to access two flash banks in parallel */ #define NOR_2X16(d) ((d << 16) | (d & 0xffff)) |