aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_ocp.c
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-03-04 15:09:18 +0100
committerJakub Kicinski <kuba@kernel.org>2022-03-04 20:57:57 -0800
commit349fa2796e5235d81df6e01f122e75124e34b859 (patch)
tree7f3df7d0f8dca2840224ab7f203c8a0351928186 /drivers/ptp/ptp_ocp.c
parentMerge tag 'for-net-next-2022-03-04' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next (diff)
downloadlinux-dev-349fa2796e5235d81df6e01f122e75124e34b859.tar.xz
linux-dev-349fa2796e5235d81df6e01f122e75124e34b859.zip
net: sparx5: Fix initialization of variables on stack
The variables 'res' inside the functions sparx5_ptp_get_1ppm and sparx5_ptp_get_nominal_value was not initialized. So in case of the default case of the switch after, it would return an uninitialized variable. This makes also the clang builds to failed. Fixes: 0933bd04047c3b ("net: sparx5: Add support for ptp clocks") Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20220304140918.3356873-1-horatiu.vultur@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/ptp/ptp_ocp.c')
0 files changed, 0 insertions, 0 deletions