X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fbluetooth%2Fhci_h4.c;h=ad62abbbb739ae797560fa26391d6afa2a04a2ff;hb=5a8765a84c31ea51baf1f6c78116cd877bd8cd64;hp=12e369a66fc24be1e2dba29cae82a679576ca32d;hpb=9dfb7808fb05643b0d06df7411b94d9546696bf1;p=powerpc.git diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 12e369a66f..ad62abbbb7 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c @@ -23,7 +23,6 @@ * */ -#include #include #include @@ -76,12 +75,10 @@ static int h4_open(struct hci_uart *hu) BT_DBG("hu %p", hu); - h4 = kmalloc(sizeof(*h4), GFP_ATOMIC); + h4 = kzalloc(sizeof(*h4), GFP_ATOMIC); if (!h4) return -ENOMEM; - memset(h4, 0, sizeof(*h4)); - skb_queue_head_init(&h4->txq); hu->priv = h4;