]> git.baikalelectronics.ru Git - arm-tf.git/commit
MISRA cleanup in mem_region and semihosting files
authorjohpow01 <john.powell@arm.com>
Thu, 30 Jul 2020 22:11:03 +0000 (17:11 -0500)
committerjohpow01 <john.powell@arm.com>
Sat, 8 Aug 2020 00:11:23 +0000 (19:11 -0500)
commit633fa4cd1fc8ef7f1b79bc4068b91c97fe4af4ef
treec97d8b62f5acf20977e06d97e9520fd18bce0e05
parentf0b1864f8e309a41d2eb1c9510f8cd3c7aacbb1d
MISRA cleanup in mem_region and semihosting files

MISRA defect cleanup and general code cleanup in mem_region.c and
semihosting.c.  This task also called for cleanup of the ARM NOR flash
driver but that was removed at some point since the Jira task was
created.  This patch fixes all MISRA defects in these files except for a
few "Calling function "console_flush()" which returns error information
without testing the error information." errors which can't really be
avoided.

Defects Fixed

File                           Line Rule
lib/semihosting/semihosting.c  70   MISRA C-2012 Rule 14.4 (required)
lib/semihosting/semihosting.c  197  MISRA C-2012 Rule 14.3 (required)
lib/semihosting/semihosting.c  210  MISRA C-2012 Rule 14.4 (required)
lib/utils/mem_region.c         128  MISRA C-2012 Rule 12.1 (advisory)

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I21a039d1cfccd6aa4301da09daec15e373305a80
lib/semihosting/semihosting.c
lib/utils/mem_region.c