aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-07-17 11:05:07 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-07-17 11:05:07 +0100
commitaab746106c5afcf940bd7a146a099cd485dfe6e5 (patch)
tree9942bcd0fd154dd1d5180132af81f4910fa74c7e /util
parente65ecb665c88a7d61e5d21253c9672dedd72f84b (diff)
downloadqemu-aab746106c5afcf940bd7a146a099cd485dfe6e5.zip
qemu-aab746106c5afcf940bd7a146a099cd485dfe6e5.tar.gz
qemu-aab746106c5afcf940bd7a146a099cd485dfe6e5.tar.bz2
linux-user: Remove pointless NULL check in clock_adjtime handling
In the code for TARGET_NR_clock_adjtime, we set the pointer phtx to the address of the local variable htx. This means it can never be NULL, but later in the code we check it for NULL anyway. Coverity complains about this (CID 1507683) because the NULL check comes after a call to clock_adjtime() that assumes it is non-NULL. Since phtx is always &htx, and is used only in three places, it's not really necessary. Remove it, bringing the code structure in to line with that for TARGET_NR_clock_adjtime64, which already uses a simple '&htx' when it wants a pointer to 'htx'. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230623144410.1837261-1-peter.maydell@linaro.org
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions