Misra fixes (15.6 & 11.9)

Merged Darryl Green requested to merge github/fork/nicola-mazzucato-arm/misra_fixes_oct_21 into master

Created by: nicola-mazzucato-arm

Some of MISRA defects for rules 15.6 & 11.9 were left behind. This PR aims to address those.

Merge request reports