From 006e79cdf4273b52a854f36b119ebd2ea954ea92 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 9 Jan 2023 20:03:19 +0100 Subject: ui: Don't check for mode change after mouse_set error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hmp_mouse_set() doesn't bail out when it can't find a mouse. Harmless, since qemu_input_check_mode_change() should be a no-op then. Clean it up anyway. Signed-off-by: Markus Armbruster Message-Id: <20230109190321.1056914-16-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- ui/input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/input.c') diff --git a/ui/input.c b/ui/input.c index 8f4a87d..d1c7605 100644 --- a/ui/input.c +++ b/ui/input.c @@ -616,6 +616,7 @@ void hmp_mouse_set(Monitor *mon, const QDict *qdict) if (!found) { error_report("Mouse at index '%d' not found", index); + return; } qemu_input_check_mode_change(); -- cgit v1.1