staging: most: remove code to destroy channel

This patch removes unnecessary code to destroy channel objects. It is
needed, because function most_stop_channel, which is indirectly
triggered by function most_deregister_interface, already destroys the
channels.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Gromm 2015-12-22 10:52:58 +01:00 committed by Greg Kroah-Hartman
parent 9cda3007ab
commit b522e61fb6
1 changed files with 0 additions and 13 deletions

View File

@ -1803,19 +1803,6 @@ void most_deregister_interface(struct most_interface *iface)
c->aim1.ptr = NULL; c->aim1.ptr = NULL;
} }
list_for_each_entry(c, &i->channel_list, list) {
if (c->aim0.refs + c->aim1.refs <= 0)
continue;
mutex_lock(&c->stop_task_mutex);
if (c->hdm_enqueue_task)
kthread_stop(c->hdm_enqueue_task);
c->hdm_enqueue_task = NULL;
mutex_unlock(&c->stop_task_mutex);
if (iface->poison_channel(iface, c->channel_id))
pr_err("Can't poison channel %d\n", c->channel_id);
}
ida_simple_remove(&mdev_id, i->dev_id); ida_simple_remove(&mdev_id, i->dev_id);
list_del(&i->list); list_del(&i->list);
destroy_most_inst_obj(i); destroy_most_inst_obj(i);