aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2023-01-27 23:14:00 +0100
committerDaniel Vetter <[email protected]>2023-03-24 10:46:12 +0100
commit08570b7c8db6d9185deccf5bcda773bd6f17172f (patch)
tree78b7d4ae167de0b2105ac6ae5250e3021428a68c /scripts/gdb/linux/utils.py
parent2e4e9de1620f76a69893b35f920171b563bd007c (diff)
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 <[email protected]> Reviewed-by: Mikko Perttunen <[email protected]> Reported-by: "kernelci.org bot" <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Jon Hunter <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions