]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/bluetooth/bluecard_cs.c
net: fec: call dma_mapping_error() where appropriate
[karo-tx-linux.git] / drivers / bluetooth / bluecard_cs.c
index 395acde99d7863d13c5016a0ee7b14ac53e67a57..57427de864a657530ec92f1a54fe9e0d5c52938e 100644 (file)
@@ -658,17 +658,9 @@ static int bluecard_hci_close(struct hci_dev *hdev)
 }
 
 
-static int bluecard_hci_send_frame(struct sk_buff *skb)
+static int bluecard_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
 {
-       bluecard_info_t *info;
-       struct hci_dev *hdev = (struct hci_dev *)(skb->dev);
-
-       if (!hdev) {
-               BT_ERR("Frame for unknown HCI device (hdev=NULL)");
-               return -ENODEV;
-       }
-
-       info = hci_get_drvdata(hdev);
+       bluecard_info_t *info = hci_get_drvdata(hdev);
 
        switch (bt_cb(skb)->pkt_type) {
        case HCI_COMMAND_PKT: