diff options
Diffstat (limited to 'hw/pxa2xx_keypad.c')
-rw-r--r-- | hw/pxa2xx_keypad.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/pxa2xx_keypad.c b/hw/pxa2xx_keypad.c index b67b2cb845..c6c7528b63 100644 --- a/hw/pxa2xx_keypad.c +++ b/hw/pxa2xx_keypad.c @@ -332,8 +332,6 @@ struct pxa2xx_keypad_s *pxa27x_keypad_init(target_phys_addr_t base, void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map, int size) { - kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size); - if(!map || size < 0x80) { fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__); exit(-1); |