Merge remote-tracking branch 'usb-gadget/next'
[deliverable/linux.git] / drivers / bluetooth / btqca.c
index 4a6208168850178cdadf521c317435d39369049b..28afd5d585f951a6953bfacc8b9ad1aa0e0e65b5 100644 (file)
@@ -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;
        }
This page took 0.028184 seconds and 5 git commands to generate.