]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(zynqmp): initialize uint32 with value 0U in pm code
authorNaman Patel <naman.patel@amd.com>
Thu, 1 Dec 2022 10:58:46 +0000 (02:58 -0800)
committerNaman Patel <naman.patel@amd.com>
Thu, 1 Dec 2022 11:11:04 +0000 (03:11 -0800)
commite65584a017fadf002d5bdd1e95527c48610a6963
tree00f401f47c58f1ac3305d7806345b627edee8e72
parent2b9c8b877c33782df1731b7b52658ce3aab7126d
fix(zynqmp): initialize uint32 with value 0U in pm code

MISRA Violation: MISRA C-2012 Rule 7.2
- Initialize the unsigned int with value 0u in pm_service component.

Current misra warning detection tool is not reporting this as
warning. It reports only when the initialized value exceeds the
range of data type based on compiler used.

But, this change is added as a part of precaution as some other
misra checker tool may report it as violation of rule 7.2.

Signed-off-by: Naman Patel <naman.patel@amd.com>
Change-Id: I50a5cee2a077fe157e79757d959ce33064225af3
plat/xilinx/zynqmp/pm_service/pm_svc_main.c