summaryrefslogtreecommitdiff
path: root/drivers/mfd/wm831x-otp.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-01-28 01:14:00 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2023-03-24 12:46:12 +0300
commit08570b7c8db6d9185deccf5bcda773bd6f17172f (patch)
tree78b7d4ae167de0b2105ac6ae5250e3021428a68c /drivers/mfd/wm831x-otp.c
parent2e4e9de1620f76a69893b35f920171b563bd007c (diff)
downloadlinux-08570b7c8db6d9185deccf5bcda773bd6f17172f.tar.xz
gpu: host1x: fix uninitialized variable use
The error handling for platform_get_irq() failing no longer works after a recent change, clang now points this out with a warning: drivers/gpu/host1x/dev.c:520:6: error: variable 'syncpt_irq' is uninitialized when used here [-Werror,-Wuninitialized] if (syncpt_irq < 0) ^~~~~~~~~~ Fix this by removing the variable and checking the correct error status. Fixes: 625d4ffb438c ("gpu: host1x: Rewrite syncpoint interrupt handling") Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reported-by: "kernelci.org bot" <bot@kernelci.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20230127221418.2522612-1-arnd@kernel.org
Diffstat (limited to 'drivers/mfd/wm831x-otp.c')
0 files changed, 0 insertions, 0 deletions