aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:40:24 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:11 +0100
commita243ecf8c09efd25a09f28e41eca0fea4f3444a0 (patch)
tree873347575a8261f52b678e0cff269e1dce2cd85b /hw
parent108cb22e4837a36bc22959a612f8bb50471139f6 (diff)
downloadqemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.zip
qemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.tar.gz
qemu-a243ecf8c09efd25a09f28e41eca0fea4f3444a0.tar.bz2
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')
-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 f6f5514..8018e39 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);