summaryrefslogtreecommitdiff
path: root/drivers/fpga/cyclon2.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-08-07 11:04:05 +0100
committerMichal Simek <michal.simek@amd.com>2025-08-25 16:20:47 +0200
commit6ce599f513172147362e8a2f7424837a2dd60e90 (patch)
treec37ac80f7c6777907a1abff19343c8f4d6905f59 /drivers/fpga/cyclon2.c
parent7aac8439445793baa9313a7d5139b77f968b2885 (diff)
pinctrl: zynqmp: Avoid using uninitialised variable
In zynqmp_pinconf_set if param is PIN_CFG_IOSTANDARD or PIN_CONFIG_POWER_SOURCE and zynqmp_pm_pinctrl_get_config returns an error then value will not be assigned to when its value is tested to be not equal to arg. Add code to only test value not equal to arg if ret is false. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Link: https://lore.kernel.org/r/20250807-pinctrl_misc-v1-4-eeb564a1b032@linaro.org Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/fpga/cyclon2.c')
0 files changed, 0 insertions, 0 deletions