Commit 627fdaf7 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville

rt2x00: rt2800usb: move additional txdone into new function

Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Acked-by: default avatarGertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d47a61aa
...@@ -528,15 +528,11 @@ static void rt2800usb_txdone(struct rt2x00_dev *rt2x00dev) ...@@ -528,15 +528,11 @@ static void rt2800usb_txdone(struct rt2x00_dev *rt2x00dev)
} }
} }
static void rt2800usb_work_txdone(struct work_struct *work) static void rt2800usb_txdone_nostatus(struct rt2x00_dev *rt2x00dev)
{ {
struct rt2x00_dev *rt2x00dev =
container_of(work, struct rt2x00_dev, txdone_work);
struct data_queue *queue; struct data_queue *queue;
struct queue_entry *entry; struct queue_entry *entry;
rt2800usb_txdone(rt2x00dev);
/* /*
* Process any trailing TX status reports for IO failures, * Process any trailing TX status reports for IO failures,
* we loop until we find the first non-IO error entry. This * we loop until we find the first non-IO error entry. This
...@@ -560,6 +556,16 @@ static void rt2800usb_work_txdone(struct work_struct *work) ...@@ -560,6 +556,16 @@ static void rt2800usb_work_txdone(struct work_struct *work)
break; break;
} }
} }
}
static void rt2800usb_work_txdone(struct work_struct *work)
{
struct rt2x00_dev *rt2x00dev =
container_of(work, struct rt2x00_dev, txdone_work);
rt2800usb_txdone(rt2x00dev);
rt2800usb_txdone_nostatus(rt2x00dev);
/* /*
* The hw may delay sending the packet after DMA complete * The hw may delay sending the packet after DMA complete
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment