ps2: don't deassert irq twice if queue is empty
commitcec3252416bb76d3c5cee178825a6321950cedec
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 25 May 2021 18:14:32 +0000 (25 20:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 26 May 2021 09:28:14 +0000 (26 11:28 +0200)
treed863422ef9df931f4b5b82066bfd0ed12b3a5515
parent7704bb02dd73070b218fb091cdda79679dab2b8f
ps2: don't deassert irq twice if queue is empty

Don't deassert the irq twice if the queue is empty. While the
second deassertion doesn't do any harm, it's unnecessary.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20210525181441.27768-3-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/ps2.c