summaryrefslogtreecommitdiff
path: root/scripts/gcc-stack-usage.sh
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-08-07 15:28:58 +0100
committerTom Rini <[email protected]>2025-08-29 16:44:46 -0600
commitaa136393c8fd448e903e3fd3297efb13e54c42d7 (patch)
treeef7415177079cdadebdc82fc4ae6cd4c3c14879b /scripts/gcc-stack-usage.sh
parent446b7b8f2d9b5b9bcd473c91f1e45cbb77be6c5f (diff)
power: power_i2c: ret is uninitialised if not DM_I2C
In pmic_reg_read ret is only assigned to inside #if CONFIG_IS_ENABLED(DM_I2C) so move the test and return ret inside as well and also guard the declaration of ret with CONFIG_IS_ENABLED(DM_I2C) to prevent a warning about an unused variable. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'scripts/gcc-stack-usage.sh')
0 files changed, 0 insertions, 0 deletions