summaryrefslogtreecommitdiffstats
path: root/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-06-24 15:40:24 +0200
committerMark Cave-Ayland2022-06-26 19:40:11 +0200
commita243ecf8c09efd25a09f28e41eca0fea4f3444a0 (patch)
tree873347575a8261f52b678e0cff269e1dce2cd85b /hw/input
parentps2: implement ps2_reset() for the PS2_DEVICE QOM type based upon ps2_common_... (diff)
downloadqemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.tar.gz
qemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.tar.xz
qemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.zip
ps2: remove duplicate setting of scancode_set in ps2_kbd_init()
The default value for scancode_set is already set in ps2_kbd_reset() so there is no need to duplicate this in ps2_kbd_init(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220624134109.881989-10-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/input')
-rw-r--r--hw/input/ps2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/input/ps2.c b/hw/input/ps2.c
index f6f5514f0b..8018e39b17 100644
--- a/hw/input/ps2.c
+++ b/hw/input/ps2.c
@@ -1227,7 +1227,6 @@ void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg)
trace_ps2_kbd_init(s);
ps2->update_irq = update_irq;
ps2->update_arg = update_arg;
- s->scancode_set = 2;
vmstate_register(NULL, 0, &vmstate_ps2_keyboard, s);
qemu_input_handler_register((DeviceState *)s,
&ps2_keyboard_handler);