Bluetooth: Fix test for lookup_dev return value
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 12 Dec 2013 07:53:21 +0000 (09:53 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 12 Dec 2013 07:59:21 +0000 (23:59 -0800)
commit30d3db44bb337321b25344eea3ed6a64ee16fcc8
tree7ae26e0b386cec6716fde50428404e4258905312
parentd0746f3ecc884a5b044d92d463f0e2ec1507fc78
Bluetooth: Fix test for lookup_dev return value

The condition wouldn't have previously caused -ENOENT to be returned if
dev was NULL. The proper condition should be if (!dev || !dev->netdev).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c