]> git.ipfire.org Git - thirdparty/qemu.git/commit
softmmu: remove useless condition in watchpoint check
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Thu, 28 Oct 2021 11:48:10 +0000 (14:48 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Oct 2021 03:55:07 +0000 (20:55 -0700)
commit1ab0ba8ab525046f4727c6e1b146e779db8b0489
tree97ddb1f9f608a5047e44a85ca4e01dfe7fa8f461
parent9f660c077b53f58792b6fa6a45b2c3eb1e25b716
softmmu: remove useless condition in watchpoint check

cpu_check_watchpoint function checks cpu->watchpoint_hit at the entry.
But then it also does the same in the middle of the function,
while this field can't change.
That is why this patch removes this useless condition.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <163542169094.2127597.8801843697434113110.stgit@pasha-ThinkPad-X280>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
softmmu/physmem.c