Home
last modified time | relevance | path

Searched hist:"8 ee0fc31992538823177e764e4522293ea829957" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/nxp/clk/s32cc/
H A Ds32cc_clk_drv.c8ee0fc31992538823177e764e4522293ea829957 Mon Sep 30 06:39:15 UTC 2024 Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com> fix(nxp-clk): function parameter should not be modified

The function 'update_stack_depth' modifies the value of the 'depth'
parameter passed by reference. Typically, the caller recevies this
parameter by value, and it is then passed to 'update_stack_depth' by
reference. This violates MISRA 17.8 rule. To address this issue, a new
local variable is introduced to store the value of 'depth'.

Change-Id: Ia37f4ede9e6558f778bdda17b7b195f1f50d0c30
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>