|
@@ -556,8 +556,6 @@ void mei_timer(struct work_struct *work)
|
|
|
{
|
|
|
unsigned long timeout;
|
|
|
struct mei_cl *cl;
|
|
|
- struct mei_cl_cb *cb_pos = NULL;
|
|
|
- struct mei_cl_cb *cb_next = NULL;
|
|
|
|
|
|
struct mei_device *dev = container_of(work,
|
|
|
struct mei_device, timer_work.work);
|
|
@@ -632,15 +630,8 @@ void mei_timer(struct work_struct *work)
|
|
|
|
|
|
dev_dbg(&dev->pdev->dev, "freeing AMTHI for other requests\n");
|
|
|
|
|
|
- list_for_each_entry_safe(cb_pos, cb_next,
|
|
|
- &dev->amthif_rd_complete_list.list, list) {
|
|
|
-
|
|
|
- cl = cb_pos->file_object->private_data;
|
|
|
-
|
|
|
- /* Finding the AMTHI entry. */
|
|
|
- if (cl == &dev->iamthif_cl)
|
|
|
- list_del(&cb_pos->list);
|
|
|
- }
|
|
|
+ mei_io_list_flush(&dev->amthif_rd_complete_list,
|
|
|
+ &dev->iamthif_cl);
|
|
|
mei_io_cb_free(dev->iamthif_current_cb);
|
|
|
dev->iamthif_current_cb = NULL;
|
|
|
|