diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-12-10 15:08:08 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-11 11:57:17 +0100 |
commit | 7a1b46e09504419a3aa867dba3bcf23db5d6d956 (patch) | |
tree | 5aef77b9faa0de21b5d2f619a020ba722c704cca /Makefile | |
parent | a311f891abf3833c1e4c5a62a6e5b0f1b81f22c3 (diff) | |
download | qemu-7a1b46e09504419a3aa867dba3bcf23db5d6d956.zip qemu-7a1b46e09504419a3aa867dba3bcf23db5d6d956.tar.gz qemu-7a1b46e09504419a3aa867dba3bcf23db5d6d956.tar.bz2 |
input: avoid malloc for mouse events
There is no reason to allocate mouse events using malloc, we can
allcoate them from stack instead, save a few cpu cycles and make the
code more readable with c99 initializers.
Suggested-by: FelixYao <felix.yzg@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181210140808.26794-1-kraxel@redhat.com
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions