Bluetooth: hci_bcm: checking for ERR_PTR instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Oct 2015 09:06:09 +0000 (12:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Oct 2015 09:32:47 +0000 (11:32 +0200)
commita1857390e2a626cd44e494968fc1b41891caec66
treeaf0e9848bcce33192657915a622c09f98cca899b
parentc81d555a264bde740adc314f3931046994534106
Bluetooth: hci_bcm: checking for ERR_PTR instead of NULL

bt_skb_alloc() returns NULL on error, it never returns an ERR_PTR.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c