mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
rt2x00: Reduce indenting
Cosmetic change, reduce indenting. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
933314582e
commit
ee1e755f84
|
|
@ -232,21 +232,22 @@ static inline void rt2x00usb_kick_tx_entry(struct queue_entry *entry)
|
||||||
struct queue_entry_priv_usb *entry_priv = entry->priv_data;
|
struct queue_entry_priv_usb *entry_priv = entry->priv_data;
|
||||||
u32 length;
|
u32 length;
|
||||||
|
|
||||||
if (test_and_clear_bit(ENTRY_DATA_PENDING, &entry->flags)) {
|
if (!test_and_clear_bit(ENTRY_DATA_PENDING, &entry->flags))
|
||||||
/*
|
return;
|
||||||
* USB devices cannot blindly pass the skb->len as the
|
|
||||||
* length of the data to usb_fill_bulk_urb. Pass the skb
|
|
||||||
* to the driver to determine what the length should be.
|
|
||||||
*/
|
|
||||||
length = rt2x00dev->ops->lib->get_tx_data_len(entry);
|
|
||||||
|
|
||||||
usb_fill_bulk_urb(entry_priv->urb, usb_dev,
|
/*
|
||||||
usb_sndbulkpipe(usb_dev, entry->queue->usb_endpoint),
|
* USB devices cannot blindly pass the skb->len as the
|
||||||
entry->skb->data, length,
|
* length of the data to usb_fill_bulk_urb. Pass the skb
|
||||||
rt2x00usb_interrupt_txdone, entry);
|
* to the driver to determine what the length should be.
|
||||||
|
*/
|
||||||
|
length = rt2x00dev->ops->lib->get_tx_data_len(entry);
|
||||||
|
|
||||||
usb_submit_urb(entry_priv->urb, GFP_ATOMIC);
|
usb_fill_bulk_urb(entry_priv->urb, usb_dev,
|
||||||
}
|
usb_sndbulkpipe(usb_dev, entry->queue->usb_endpoint),
|
||||||
|
entry->skb->data, length,
|
||||||
|
rt2x00usb_interrupt_txdone, entry);
|
||||||
|
|
||||||
|
usb_submit_urb(entry_priv->urb, GFP_ATOMIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rt2x00usb_kick_tx_queue(struct data_queue *queue)
|
void rt2x00usb_kick_tx_queue(struct data_queue *queue)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user