提交 0676cab4 编写于 作者: C Colin Ian King 提交者: Marcel Holtmann

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 baab7932
...@@ -55,8 +55,8 @@ static int rome_patch_ver_req(struct hci_dev *hdev, u32 *rome_version) ...@@ -55,8 +55,8 @@ static int rome_patch_ver_req(struct hci_dev *hdev, u32 *rome_version)
} }
edl = (struct edl_event_hdr *)(skb->data); edl = (struct edl_event_hdr *)(skb->data);
if (!edl || !edl->data) { if (!edl) {
BT_ERR("%s: TLV with no header or no data", hdev->name); BT_ERR("%s: TLV with no header", hdev->name);
err = -EILSEQ; err = -EILSEQ;
goto out; goto out;
} }
...@@ -224,8 +224,8 @@ static int rome_tlv_send_segment(struct hci_dev *hdev, int idx, int seg_size, ...@@ -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); edl = (struct edl_event_hdr *)(skb->data);
if (!edl || !edl->data) { if (!edl) {
BT_ERR("%s: TLV with no header or no data", hdev->name); BT_ERR("%s: TLV with no header", hdev->name);
err = -EILSEQ; err = -EILSEQ;
goto out; goto out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册