OSDN Git Service

Replace usage of HCI_GET_CMD_BUF() with osi_malloc()
authorPavlin Radoslavov <pavlin@google.com>
Wed, 17 Feb 2016 02:16:59 +0000 (18:16 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 18 Feb 2016 21:14:45 +0000 (21:14 +0000)
commitf58d6e6da7aaceaa860a3a3548ae2b82e8e8a821
tree9815857390ebb196a0b7b520c0ac6bf7015fb074
parentdf5c69caa3c2683779d48739e1571c13e5f7ab2e
Replace usage of HCI_GET_CMD_BUF() with osi_malloc()

* Remove HCI_GET_CMD_BUF() wrapper macro, and replace it with
  its default implementation: (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE)

* Remove explicit checks for NULL when HCI_GET_CMD_BUF() was used.

Bug: 27048759
Change-Id: I7c71b408f40d58f6ebf3a310aa806daba3342f77
include/bt_target.h
stack/hcic/hciblecmds.c
stack/hcic/hcicmds.c