]> Git Repo - qemu.git/blobdiff - hw/bt-hci-csr.c
qxl/update_area_io: guest_bug on invalid parameters
[qemu.git] / hw / bt-hci-csr.c
index 65ffa37fdf1c1975f087cb4250b9b068f28f8ca5..772b677ba177f60f0f1e40c4cb41f9a14ae0638c 100644 (file)
@@ -22,7 +22,6 @@
 #include "qemu-char.h"
 #include "qemu-timer.h"
 #include "irq.h"
-#include "sysemu.h"
 #include "net.h"
 #include "bt.h"
 
@@ -223,7 +222,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)
 
         rpkt = csrhci_out_packet_csr(s, H4_NEG_PKT, 10);
 
-        *rpkt ++ = 0x20;       /* Operational settings negotation Ok */
+        *rpkt ++ = 0x20;       /* Operational settings negotiation Ok */
         memcpy(rpkt, pkt, 7); rpkt += 7;
         *rpkt ++ = 0xff;
         *rpkt = 0xff;
@@ -435,7 +434,7 @@ qemu_irq *csrhci_pins_get(CharDriverState *chr)
 CharDriverState *uart_hci_init(qemu_irq wakeup)
 {
     struct csrhci_s *s = (struct csrhci_s *)
-            qemu_mallocz(sizeof(struct csrhci_s));
+            g_malloc0(sizeof(struct csrhci_s));
 
     s->chr.opaque = s;
     s->chr.chr_write = csrhci_write;
This page took 0.026803 seconds and 4 git commands to generate.