Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91376
b: refs/heads/master
c: d129f18
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and David S. Miller committed Apr 20, 2008
1 parent 4fd2bda commit 6a61ee3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b132fba18bb5e30ed13ce3c623c18eb1e5795534
refs/heads/master: d129f188abf14bbc13816667e4c0d465aac2c934
10 changes: 5 additions & 5 deletions trunk/drivers/bluetooth/hci_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static int hci_usb_intr_rx_submit(struct hci_usb *husb)
BT_ERR("%s intr rx submit failed urb %p err %d",
husb->hdev->name, urb, err);
_urb_unlink(_urb);
_urb_free(_urb);
kfree(_urb);
kfree(buf);
}
return err;
Expand Down Expand Up @@ -302,7 +302,7 @@ static int hci_usb_bulk_rx_submit(struct hci_usb *husb)
BT_ERR("%s bulk rx submit failed urb %p err %d",
husb->hdev->name, urb, err);
_urb_unlink(_urb);
_urb_free(_urb);
kfree(_urb);
kfree(buf);
}
return err;
Expand Down Expand Up @@ -353,7 +353,7 @@ static int hci_usb_isoc_rx_submit(struct hci_usb *husb)
BT_ERR("%s isoc rx submit failed urb %p err %d",
husb->hdev->name, urb, err);
_urb_unlink(_urb);
_urb_free(_urb);
kfree(_urb);
kfree(buf);
}
return err;
Expand Down Expand Up @@ -431,7 +431,7 @@ static void hci_usb_unlink_urbs(struct hci_usb *husb)
husb->hdev->name, _urb, _urb->type, urb);
kfree(urb->setup_packet);
kfree(urb->transfer_buffer);
_urb_free(_urb);
kfree(_urb);
}
}
}
Expand Down Expand Up @@ -490,7 +490,7 @@ static inline int hci_usb_send_ctrl(struct hci_usb *husb, struct sk_buff *skb)

dr = kmalloc(sizeof(*dr), GFP_ATOMIC);
if (!dr) {
_urb_free(_urb);
kfree(_urb);
return -ENOMEM;
}
} else
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/bluetooth/hci_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ struct _urb {
struct urb urb;
};

static inline void _urb_free(struct _urb *_urb)
{
kfree(_urb);
}

static inline void _urb_queue_init(struct _urb_queue *q)
{
INIT_LIST_HEAD(&q->head);
Expand Down

0 comments on commit 6a61ee3

Please sign in to comment.