summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btqca.c
diff options
context:
space:
mode:
authorColin Ian King2016-09-06 14:15:49 +0200
committerMarcel Holtmann2016-09-19 20:19:34 +0200
commit0676cab47ed18c9cfa884f055a3ba0f9e6fb8e96 (patch)
treef293272143468df85729c5a470fcb94607942c3b /drivers/bluetooth/btqca.c
parentBluetooth: Fix wrong New Settings event when closing HCI User Channel (diff)
downloadkernel-qcow2-linux-0676cab47ed18c9cfa884f055a3ba0f9e6fb8e96.tar.gz
kernel-qcow2-linux-0676cab47ed18c9cfa884f055a3ba0f9e6fb8e96.tar.xz
kernel-qcow2-linux-0676cab47ed18c9cfa884f055a3ba0f9e6fb8e96.zip
Bluetooth: btqca: remove null checks on edl->data as it is an array
edl->data is an array of __u8 so the null check is unneccessary, so remove it. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btqca.c')
-rw-r--r--drivers/bluetooth/btqca.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index 4a6208168850..28afd5d585f9 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -55,8 +55,8 @@ static int rome_patch_ver_req(struct hci_dev *hdev, u32 *rome_version)
}
edl = (struct edl_event_hdr *)(skb->data);
- if (!edl || !edl->data) {
- BT_ERR("%s: TLV with no header or no data", hdev->name);
+ if (!edl) {
+ BT_ERR("%s: TLV with no header", hdev->name);
err = -EILSEQ;
goto out;
}
@@ -224,8 +224,8 @@ static int rome_tlv_send_segment(struct hci_dev *hdev, int idx, int seg_size,
}
edl = (struct edl_event_hdr *)(skb->data);
- if (!edl || !edl->data) {
- BT_ERR("%s: TLV with no header or no data", hdev->name);
+ if (!edl) {
+ BT_ERR("%s: TLV with no header", hdev->name);
err = -EILSEQ;
goto out;
}